public class DataKeyFactory extends AbstractKeyFactory
Constructor and Description |
---|
DataKeyFactory(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
public DataKeyFactory(String field)
protected Key convertToKey(Object value) throws JasDBStorageException
convertToKey
in class AbstractKeyFactory
JasDBStorageException
public Key loadKey(int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
JasDBStorageException
public void writeKey(Key key, int curPosition, ByteBuffer byteBuffer) throws JasDBStorageException
JasDBStorageException
public KeyLoadResult loadKey(int offset, DataBlock dataBlock) throws JasDBStorageException
JasDBStorageException
public DataBlock writeKey(Key key, DataBlock dataBlock) throws JasDBStorageException
JasDBStorageException
public Key convertKey(Key key) throws JasDBStorageException
JasDBStorageException
public boolean supportsKey(Key key)
public Key createKey(IndexableItem indexableItem) throws JasDBStorageException
JasDBStorageException
public Key createEmptyKey()
public KeyType getKeyType()
public String asHeader()
public String getKeyId()
public String getFieldName()
public int getKeySize()
public int getMemorySize()
Copyright © 2015. All rights reserved.