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
JasDBStorageException
public KeyInfoImpl(IndexField indexField, List<IndexField> valueIndexFields) throws JasDBStorageException
JasDBStorageException
public KeyInfoImpl(List<IndexField> keyFields, List<IndexField> valueFields) throws JasDBStorageException
JasDBStorageException
public KeyInfoImpl(String headerDescriptor, String valueDescriptor) throws JasDBStorageException
JasDBStorageException
public int match(Set<String> searchFields)
KeyInfo
public List<String> getKeyFields()
KeyInfo
getKeyFields
in interface KeyInfo
public List<IndexField> getIndexKeyFields()
getIndexKeyFields
in interface KeyInfo
public List<IndexField> getIndexValueFields()
getIndexValueFields
in interface KeyInfo
public List<String> getValueFields()
getValueFields
in interface KeyInfo
public Key loadKey(int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
loadKey
in interface KeyInfo
JasDBStorageException
public void writeKey(Key key, int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
writeKey
in interface KeyInfo
JasDBStorageException
public KeyLoadResult loadKey(int curPosition, DataBlock dataBlock) throws JasDBStorageException
loadKey
in interface KeyInfo
JasDBStorageException
public DataBlock writeKey(Key key, DataBlock dataBlock) throws JasDBStorageException
writeKey
in interface KeyInfo
JasDBStorageException
public KeyNameMapper getKeyNameMapper()
KeyInfo
getKeyNameMapper
in interface KeyInfo
public String keyAsHeader()
KeyInfo
keyAsHeader
in interface KeyInfo
public String valueAsHeader()
KeyInfo
valueAsHeader
in interface KeyInfo
public String getKeyName()
KeyInfo
getKeyName
in interface KeyInfo
public KeyFactory getKeyFactory()
KeyInfo
getKeyFactory
in interface KeyInfo
public MultiKeyloader getMultiKeyloader()
getMultiKeyloader
in interface KeyInfo
public int getKeySize()
KeyInfo
getKeySize
in interface KeyInfo
public KeyInfoType getInfoType()
getInfoType
in interface KeyInfo
Copyright © 2015. All rights reserved.