public class CompositeKeyFactory extends Object implements KeyFactory
| Constructor and Description |
|---|
CompositeKeyFactory(MultiKeyloader multiKeyloader) |
| Modifier and Type | Method and Description |
|---|---|
String |
asHeader() |
Key |
convertKey(Key key) |
Key |
createEmptyKey() |
Key |
createKey(IndexableItem indexableItem) |
Set<Key> |
createMultivalueKeys(IndexableItem indexableItem) |
String |
getFieldName() |
String |
getKeyId() |
int |
getKeySize() |
KeyType |
getKeyType() |
int |
getMemorySize() |
MultiKeyloader |
getMultiKeyloader() |
boolean |
isMultiValueKey(IndexableItem indexableItem) |
Key |
loadKey(int curPosition,
ByteBuffer byteBuffer) |
KeyLoadResult |
loadKey(int offset,
DataBlock dataBlock) |
boolean |
supportsKey(Key key) |
DataBlock |
writeKey(Key key,
DataBlock dataBlock) |
void |
writeKey(Key key,
int curPosition,
ByteBuffer byteBuffer) |
public CompositeKeyFactory(MultiKeyloader multiKeyloader)
public Key loadKey(int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
loadKey in interface KeyFactoryJasDBStorageExceptionpublic void writeKey(Key key, int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
writeKey in interface KeyFactoryJasDBStorageExceptionpublic Key createKey(IndexableItem indexableItem) throws JasDBStorageException
createKey in interface KeyFactoryJasDBStorageExceptionpublic Key createEmptyKey()
createEmptyKey in interface KeyFactorypublic KeyLoadResult loadKey(int offset, DataBlock dataBlock) throws JasDBStorageException
loadKey in interface KeyFactoryJasDBStorageExceptionpublic DataBlock writeKey(Key key, DataBlock dataBlock) throws JasDBStorageException
writeKey in interface KeyFactoryJasDBStorageExceptionpublic Set<Key> createMultivalueKeys(IndexableItem indexableItem) throws JasDBStorageException
createMultivalueKeys in interface KeyFactoryJasDBStorageExceptionpublic boolean isMultiValueKey(IndexableItem indexableItem) throws JasDBStorageException
isMultiValueKey in interface KeyFactoryJasDBStorageExceptionpublic Key convertKey(Key key) throws JasDBStorageException
convertKey in interface KeyFactoryJasDBStorageExceptionpublic MultiKeyloader getMultiKeyloader()
public boolean supportsKey(Key key)
supportsKey in interface KeyFactorypublic String asHeader()
asHeader in interface KeyFactorypublic KeyType getKeyType()
getKeyType in interface KeyFactorypublic int getKeySize()
getKeySize in interface KeyFactorypublic int getMemorySize()
getMemorySize in interface KeyFactorypublic String getKeyId()
getKeyId in interface KeyFactorypublic String getFieldName()
getFieldName in interface KeyFactoryCopyright © 2015. All rights reserved.