org.apache.jackrabbit.core.query.lucene
Class PropertyMetaData

java.lang.Object
  extended by 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
PropertyMetaData(int propertyType)
          Creates a new PropertyMetaData with the given propertyType.
 
Method Summary
static PropertyMetaData fromByteArray(byte[] data)
          Creates a PropertyMetaData from a byte array.
 int getPropertyType()
           
 byte[] toByteArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMetaData

public PropertyMetaData(int propertyType)
Creates a new PropertyMetaData with the given propertyType.

Parameters:
propertyType - the property type.
Method Detail

getPropertyType

public int getPropertyType()
Returns:
the property type.
See Also:
PropertyType

fromByteArray

public static PropertyMetaData fromByteArray(byte[] data)
Creates a PropertyMetaData 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.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.