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 intcount()The number of values of this property.booleanequals(Object object)@NotNull StringgetName()Type<?>getType()Determine the type of this property<T> TgetValue(Type<T> type)Value of this property.<T> TgetValue(Type<T> type, int index)Value at the givenindex.inthashCode()booleanisArray()Determine whether the value is an array of atomslongsize()The size of the value of this property.longsize(int index)The size of the value at the givenindex.StringtoString()
-
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getNamein interfacePropertyState- Returns:
- the name of this property state
-
isArray
public boolean isArray()
Description copied from interface:PropertyStateDetermine whether the value is an array of atoms- Specified by:
isArrayin interfacePropertyState- Returns:
trueif and only if the value is an array of atoms.
-
getType
public Type<?> getType()
Description copied from interface:PropertyStateDetermine the type of this property- Specified by:
getTypein interfacePropertyState- Returns:
- the type of this property
-
getValue
@NotNull public <T> T getValue(Type<T> type)
Description copied from interface:PropertyStateValue of this property. The type of the return value is determined by the targettypeargument. Iftype.isArray()is true, this method returns anIterableof thebase typeoftypecontaining 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.Conversionsclass.- Specified by:
getValuein 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:PropertyStateValue at the givenindex. The type of the return value is determined by the targettypeargument. 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.Conversionsclass.- Specified by:
getValuein interfacePropertyState- Parameters:
type- target type- Returns:
- the value of this property at the given
index
-
size
public long size()
Description copied from interface:PropertyStateThe size of the value of this property.- Specified by:
sizein interfacePropertyState- Returns:
- size of the value of this property
-
size
public long size(int index)
Description copied from interface:PropertyStateThe size of the value at the givenindex.- Specified by:
sizein interfacePropertyState- Returns:
- size of the value at the given
index.
-
count
public int count()
Description copied from interface:PropertyStateThe number of values of this property.1for atoms.- Specified by:
countin interfacePropertyState- Returns:
- number of values
-
-