public class LongKeyFactory extends AbstractKeyFactory implements KeyFactory
| Constructor and Description |
|---|
LongKeyFactory(String field) |
| Modifier and Type | Method and Description |
|---|---|
String |
asHeader() |
Key |
convertKey(Key key) |
protected Key |
convertToKey(Object value) |
Key |
createEmptyKey() |
Key |
createKey(IndexableItem indexableItem) |
String |
getFieldName() |
String |
getKeyId() |
int |
getKeySize() |
KeyType |
getKeyType() |
int |
getMemorySize() |
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) |
createMultivalueKeys, getField, isMultiValueKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMultivalueKeys, isMultiValueKeypublic LongKeyFactory(String field)
public String asHeader()
asHeader in interface KeyFactorypublic 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 KeyLoadResult loadKey(int offset, DataBlock dataBlock) throws JasDBStorageException
loadKey in interface KeyFactoryJasDBStorageExceptionpublic DataBlock writeKey(Key key, DataBlock dataBlock) throws JasDBStorageException
writeKey in interface KeyFactoryJasDBStorageExceptionpublic Key createKey(IndexableItem indexableItem) throws JasDBStorageException
createKey in interface KeyFactoryJasDBStorageExceptionpublic Key createEmptyKey()
createEmptyKey in interface KeyFactoryprotected Key convertToKey(Object value) throws JasDBStorageException
convertToKey in class AbstractKeyFactoryJasDBStorageExceptionpublic Key convertKey(Key key) throws JasDBStorageException
convertKey in interface KeyFactoryJasDBStorageExceptionpublic boolean supportsKey(Key key)
supportsKey in interface KeyFactorypublic String getKeyId()
getKeyId in interface KeyFactorypublic KeyType getKeyType()
getKeyType in interface KeyFactorypublic int getKeySize()
getKeySize in interface KeyFactorypublic int getMemorySize()
getMemorySize in interface KeyFactorypublic String getFieldName()
getFieldName in interface KeyFactoryCopyright © 2015. All rights reserved.