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, isMultiValueKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createMultivalueKeys, isMultiValueKey
public LongKeyFactory(String field)
public String asHeader()
asHeader
in interface KeyFactory
public Key loadKey(int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
loadKey
in interface KeyFactory
JasDBStorageException
public void writeKey(Key key, int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
writeKey
in interface KeyFactory
JasDBStorageException
public KeyLoadResult loadKey(int offset, DataBlock dataBlock) throws JasDBStorageException
loadKey
in interface KeyFactory
JasDBStorageException
public DataBlock writeKey(Key key, DataBlock dataBlock) throws JasDBStorageException
writeKey
in interface KeyFactory
JasDBStorageException
public Key createKey(IndexableItem indexableItem) throws JasDBStorageException
createKey
in interface KeyFactory
JasDBStorageException
public Key createEmptyKey()
createEmptyKey
in interface KeyFactory
protected Key convertToKey(Object value) throws JasDBStorageException
convertToKey
in class AbstractKeyFactory
JasDBStorageException
public Key convertKey(Key key) throws JasDBStorageException
convertKey
in interface KeyFactory
JasDBStorageException
public boolean supportsKey(Key key)
supportsKey
in interface KeyFactory
public String getKeyId()
getKeyId
in interface KeyFactory
public KeyType getKeyType()
getKeyType
in interface KeyFactory
public int getKeySize()
getKeySize
in interface KeyFactory
public int getMemorySize()
getMemorySize
in interface KeyFactory
public String getFieldName()
getFieldName
in interface KeyFactory
Copyright © 2015. All rights reserved.