public static class BTreeKeySerializer.Compress extends BTreeKeySerializer
BTreeKeySerializer.ArrayKeySerializer, BTreeKeySerializer.BasicKeySerializer, BTreeKeySerializer.ByteArrayKeys, BTreeKeySerializer.CharArrayKeys, BTreeKeySerializer.Compress, BTreeKeySerializer.StringArrayKeysARRAY2, ARRAY3, ARRAY4, BASIC, BYTE_ARRAY, BYTE_ARRAY2, INTEGER, LONG, STRING, STRING2, UUID, ZERO_OR_POSITIVE_INT, ZERO_OR_POSITIVE_LONG| Modifier | Constructor and Description |
|---|---|
|
BTreeKeySerializer.Compress(BTreeKeySerializer wrapped) |
protected |
BTreeKeySerializer.Compress(SerializerBase serializerBase,
DataInput in,
SerializerBase.FastArrayList objectStack) |
| Modifier and Type | Method and Description |
|---|---|
Object |
arrayToKeys(Object[] keys) |
Comparator<?> |
comparator() |
int |
compare(Object o,
int pos1,
int pos2) |
int |
compare(Object o,
int pos,
Object o2) |
boolean |
compareIsSmaller(Object o,
int pos,
Object o2) |
Object |
copyOfRange(Object o,
int from,
int to) |
Object |
deleteKey(Object o,
int pos) |
Object |
deserialize(DataInput in,
int nodeSize)
Deserializes keys for single BTree Node.
|
Object |
emptyKeys() |
int |
findChildren(BTreeMap.BNode node,
Object key)
Find the first children node with a key equal or greater than the given key.
|
int |
findChildren2(BTreeMap.BNode node,
Object key) |
Object |
getKey(Object o,
int pos) |
Object[] |
keysToArray(Object o) |
int |
length(Object o) |
Object |
putKey(Object o,
int pos,
Object newKey)
expand keys array by one and put
newKey at position pos |
void |
serialize(DataOutput out,
Object o)
Serialize keys from single BTree Node.
|
commonPrefixLen, commonPrefixLen, isTrustedpublic BTreeKeySerializer.Compress(BTreeKeySerializer wrapped)
protected BTreeKeySerializer.Compress(SerializerBase serializerBase, DataInput in, SerializerBase.FastArrayList objectStack) throws IOException
IOExceptionpublic void serialize(DataOutput out, Object o) throws IOException
BTreeKeySerializerserialize in class BTreeKeySerializerout - output stream where to put atao - An object which represents keysIOException - in case of an writting errorpublic Object deserialize(DataInput in, int nodeSize) throws IOException
BTreeKeySerializerdeserialize in class BTreeKeySerializerin - input stream to read data fromnodeSize - number of keys in deserialized nodeIOException - in case of an reading errorpublic int compare(Object o, int pos1, int pos2)
compare in class BTreeKeySerializerpublic int compare(Object o, int pos, Object o2)
compare in class BTreeKeySerializerpublic boolean compareIsSmaller(Object o, int pos, Object o2)
compareIsSmaller in class BTreeKeySerializerpublic Object getKey(Object o, int pos)
getKey in class BTreeKeySerializerpublic Comparator<?> comparator()
comparator in class BTreeKeySerializerpublic Object emptyKeys()
emptyKeys in class BTreeKeySerializerpublic int length(Object o)
length in class BTreeKeySerializerpublic Object putKey(Object o, int pos, Object newKey)
BTreeKeySerializernewKey at position posputKey in class BTreeKeySerializero - array of keys to put new key intopos - of new keynewKey - new key to insertpublic Object copyOfRange(Object o, int from, int to)
copyOfRange in class BTreeKeySerializerpublic Object deleteKey(Object o, int pos)
deleteKey in class BTreeKeySerializerpublic int findChildren(BTreeMap.BNode node, Object key)
BTreeKeySerializerkeyser.length(keys)findChildren in class BTreeKeySerializernode - BTree Node to find position inkey - key whose position needs to be findpublic int findChildren2(BTreeMap.BNode node, Object key)
findChildren2 in class BTreeKeySerializerpublic Object arrayToKeys(Object[] keys)
arrayToKeys in class BTreeKeySerializerpublic Object[] keysToArray(Object o)
keysToArray in class BTreeKeySerializerCopyright © 2015. All Rights Reserved.