| Constructor and Description |
|---|
KeyInfoImpl(IndexField indexField,
IndexField... valueFields) |
KeyInfoImpl(IndexField indexField,
List<IndexField> valueIndexFields) |
KeyInfoImpl(List<IndexField> keyFields,
List<IndexField> valueFields) |
KeyInfoImpl(String headerDescriptor,
String valueDescriptor) |
| 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> searchFields)
Determines how close the gives fields match the index descriptor.
|
String |
toString() |
String |
valueAsHeader()
Persists all value information as a header string
|
DataBlock |
writeKey(Key key,
DataBlock dataBlock) |
void |
writeKey(Key key,
int curPosition,
ByteBuffer byteBuffer) |
public KeyInfoImpl(IndexField indexField, IndexField... valueFields) throws JasDBStorageException
JasDBStorageExceptionpublic KeyInfoImpl(IndexField indexField, List<IndexField> valueIndexFields) throws JasDBStorageException
JasDBStorageExceptionpublic KeyInfoImpl(List<IndexField> keyFields, List<IndexField> valueFields) throws JasDBStorageException
JasDBStorageExceptionpublic KeyInfoImpl(String headerDescriptor, String valueDescriptor) throws JasDBStorageException
JasDBStorageExceptionpublic int match(Set<String> searchFields)
KeyInfopublic List<String> getKeyFields()
KeyInfogetKeyFields in interface KeyInfopublic List<IndexField> getIndexKeyFields()
getIndexKeyFields in interface KeyInfopublic List<IndexField> getIndexValueFields()
getIndexValueFields in interface KeyInfopublic List<String> getValueFields()
getValueFields in interface KeyInfopublic Key loadKey(int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
loadKey in interface KeyInfoJasDBStorageExceptionpublic void writeKey(Key key, int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
writeKey in interface KeyInfoJasDBStorageExceptionpublic KeyLoadResult loadKey(int curPosition, DataBlock dataBlock) throws JasDBStorageException
loadKey in interface KeyInfoJasDBStorageExceptionpublic DataBlock writeKey(Key key, DataBlock dataBlock) throws JasDBStorageException
writeKey in interface KeyInfoJasDBStorageExceptionpublic KeyNameMapper getKeyNameMapper()
KeyInfogetKeyNameMapper in interface KeyInfopublic String keyAsHeader()
KeyInfokeyAsHeader in interface KeyInfopublic String valueAsHeader()
KeyInfovalueAsHeader in interface KeyInfopublic String getKeyName()
KeyInfogetKeyName in interface KeyInfopublic KeyFactory getKeyFactory()
KeyInfogetKeyFactory in interface KeyInfopublic MultiKeyloader getMultiKeyloader()
getMultiKeyloader in interface KeyInfopublic int getKeySize()
KeyInfogetKeySize in interface KeyInfopublic KeyInfoType getInfoType()
getInfoType in interface KeyInfoCopyright © 2015. All rights reserved.