Class CompressedDocumentPropertyState
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.CompressedDocumentPropertyState
-
- All Implemented Interfaces:
PropertyState
public final class CompressedDocumentPropertyState extends Object implements PropertyState
PropertyState compression implementation with lazy parsing of the JSOP encoded value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
The number of values of this property.boolean
equals(Object object)
@NotNull String
getName()
Type<?>
getType()
Determine the type of this property<T> T
getValue(Type<T> type)
Value of this property.<T> T
getValue(Type<T> type, int index)
Value at the givenindex
.int
hashCode()
boolean
isArray()
Determine whether the value is an array of atomslong
size()
The size of the value of this property.long
size(int index)
The size of the value at the givenindex
.String
toString()
-
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfacePropertyState
- Returns:
- the name of this property state
-
isArray
public boolean isArray()
Description copied from interface:PropertyState
Determine whether the value is an array of atoms- Specified by:
isArray
in interfacePropertyState
- Returns:
true
if and only if the value is an array of atoms.
-
getType
public Type<?> getType()
Description copied from interface:PropertyState
Determine the type of this property- Specified by:
getType
in interfacePropertyState
- Returns:
- the type of this property
-
getValue
@NotNull public <T> T getValue(Type<T> type)
Description copied from interface:PropertyState
Value of this property. The type of the return value is determined by the targettype
argument. Iftype.isArray()
is true, this method returns anIterable
of thebase type
oftype
containing all values of this property. If the target type is not the same as the type of this property an attempt is made to convert the value to the target type. If the conversion fails an exception is thrown. The actual conversions which take place are those defined in theorg.apache.jackrabbit.oak.plugins.value.Conversions
class.- Specified by:
getValue
in interfacePropertyState
- Parameters:
type
- target type- Returns:
- the value of this property
-
getValue
@NotNull public <T> T getValue(Type<T> type, int index)
Description copied from interface:PropertyState
Value at the givenindex
. The type of the return value is determined by the targettype
argument. If the target type is not the same as the type of this property an attempt is made to convert the value to the target type. If the conversion fails an exception is thrown. The actual conversions which take place are those defined in theorg.apache.jackrabbit.oak.plugins.value.Conversions
class.- Specified by:
getValue
in interfacePropertyState
- Parameters:
type
- target type- Returns:
- the value of this property at the given
index
-
size
public long size()
Description copied from interface:PropertyState
The size of the value of this property.- Specified by:
size
in interfacePropertyState
- Returns:
- size of the value of this property
-
size
public long size(int index)
Description copied from interface:PropertyState
The size of the value at the givenindex
.- Specified by:
size
in interfacePropertyState
- Returns:
- size of the value at the given
index
.
-
count
public int count()
Description copied from interface:PropertyState
The number of values of this property.1
for atoms.- Specified by:
count
in interfacePropertyState
- Returns:
- number of values
-
-