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 KeyFactory
JasDBStorageException
public void writeKey(Key key, int curPosition, ByteBuffer byteBuffer) 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
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 Set<Key> createMultivalueKeys(IndexableItem indexableItem) throws JasDBStorageException
createMultivalueKeys
in interface KeyFactory
JasDBStorageException
public boolean isMultiValueKey(IndexableItem indexableItem) throws JasDBStorageException
isMultiValueKey
in interface KeyFactory
JasDBStorageException
public Key convertKey(Key key) throws JasDBStorageException
convertKey
in interface KeyFactory
JasDBStorageException
public MultiKeyloader getMultiKeyloader()
public boolean supportsKey(Key key)
supportsKey
in interface KeyFactory
public String asHeader()
asHeader
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 getKeyId()
getKeyId
in interface KeyFactory
public String getFieldName()
getFieldName
in interface KeyFactory
Copyright © 2015. All rights reserved.