public interface KeyInfo
Modifier and Type | Method and Description |
---|---|
List<IndexField> |
getIndexKeyFields() |
List<IndexField> |
getIndexValueFields() |
KeyInfoType |
getInfoType() |
KeyFactory |
getKeyFactory()
The key factory used to create/serialize/deserialize keys for the index
|
List<String> |
getKeyFields()
Returns all the fields kept in the key part of the index
|
String |
getKeyName()
Returns a name of the key field(s)
|
KeyNameMapper |
getKeyNameMapper()
Gets the key name mapper which can be used to map the name of the
field to a position in the key payload.
|
int |
getKeySize()
This determines the byte size that is required to store all the key information in the index
|
MultiKeyloader |
getMultiKeyloader() |
List<String> |
getValueFields() |
String |
keyAsHeader()
Persists all key information as a header string
|
Key |
loadKey(int curPosition,
ByteBuffer byteBuffer) |
KeyLoadResult |
loadKey(int curPosition,
DataBlock dataBlock) |
int |
match(Set<String> fields)
Determines how close the gives fields match the index descriptor.
|
String |
valueAsHeader()
Persists all value information as a header string
|
DataBlock |
writeKey(Key key,
DataBlock dataBlock) |
void |
writeKey(Key key,
int curPosition,
ByteBuffer byteBuffer) |
Key loadKey(int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
JasDBStorageException
void writeKey(Key key, int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
JasDBStorageException
KeyLoadResult loadKey(int curPosition, DataBlock dataBlock) throws JasDBStorageException
JasDBStorageException
DataBlock writeKey(Key key, DataBlock dataBlock) throws JasDBStorageException
JasDBStorageException
String keyAsHeader()
String valueAsHeader()
int match(Set<String> fields)
fields
- The fields to check for matchingint getKeySize()
String getKeyName()
List<IndexField> getIndexKeyFields()
List<IndexField> getIndexValueFields()
List<String> getKeyFields()
KeyInfoType getInfoType()
KeyFactory getKeyFactory()
MultiKeyloader getMultiKeyloader()
KeyNameMapper getKeyNameMapper()
Copyright © 2015. All rights reserved.