|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface should be implemented by all basic types to be used as keys in a value index.
NativeValueIndex
Method Summary | |
int |
getType()
Returns the type of the Indexable as one of the constants defined in Type . |
byte[] |
serialize(short collectionId,
boolean caseSensitive)
Deprecated. use following function instead; this API should be local to value index class like NativeValueIndex
The returned byte array has the following format:
(short: collectionId, byte type, byte[] value) |
byte[] |
serializeValue(int offset,
boolean caseSensitive)
Serialize the value to an array of bytes for the persistant storage. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public byte[] serialize(short collectionId, boolean caseSensitive) throws EXistException
NativeValueIndex
The returned byte array has the following format:
(short: collectionId, byte type, byte[] value)
collectionId
- the collection id to usecaseSensitive
- only relevant for string values: if set to false,
strings should be serialized in lower case
EXistException
public byte[] serializeValue(int offset, boolean caseSensitive) throws EXistException
offset
- starting index for writing in array data
EXistException
public int getType()
Type
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |