org.exist.storage
Class ValueIndexKeyFactorySimple

java.lang.Object
  extended by org.exist.storage.ValueIndexKeyFactorySimple
All Implemented Interfaces:
Comparable, ValueIndexKeyFactory

public class ValueIndexKeyFactorySimple
extends Object
implements ValueIndexKeyFactory

Simple wrapper around an Indexable object, that adds the collectionId to the srailization of the indexable. TODO "ValueIndexKeyFactory" refactoring: use this class in NativeValueIndex


Field Summary
static int OFFSET_COLLECTION_ID
           
static int OFFSET_VALUE
           
 
Constructor Summary
ValueIndexKeyFactorySimple(Indexable indexable)
           
 
Method Summary
 int compareTo(Object other)
           
 byte[] serialize(short collectionId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFFSET_COLLECTION_ID

public static int OFFSET_COLLECTION_ID

OFFSET_VALUE

public static int OFFSET_VALUE
Constructor Detail

ValueIndexKeyFactorySimple

public ValueIndexKeyFactorySimple(Indexable indexable)
Method Detail

serialize

public byte[] serialize(short collectionId)
                 throws EXistException
Throws:
EXistException

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable
Returns:
negative value <==> this object is less than other


Copyright (C) Wolfgang Meier. All rights reserved.