Class PropertyMetaData
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.PropertyMetaData
-
public final class PropertyMetaData extends Object
PropertyMetaData
encapsulates the payload byte array and provides methods to access the property meta data.
-
-
Constructor Summary
Constructors Constructor Description PropertyMetaData(int propertyType)
Creates a new PropertyMetaData with the givenpropertyType
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyMetaData
fromByteArray(byte[] data)
Creates aPropertyMetaData
from a byte array.int
getPropertyType()
byte[]
toByteArray()
-
-
-
Method Detail
-
getPropertyType
public int getPropertyType()
- Returns:
- the property type.
- See Also:
PropertyType
-
fromByteArray
public static PropertyMetaData fromByteArray(byte[] data)
Creates aPropertyMetaData
from a byte array.- Parameters:
data
- the payload data array.- Returns:
- a
PropertyMetaData
from a byte array.
-
toByteArray
public byte[] toByteArray()
- Returns:
- returns a byte array representation of this PropertyMetaData for use as a lucene token payload.
-
-