public class OPrefixBTreeBucket<V> extends ODurablePage
Modifier and Type | Class and Description |
---|---|
static class |
OPrefixBTreeBucket.SBTreeEntry<V> |
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET
Constructor and Description |
---|
OPrefixBTreeBucket(OCacheEntry cacheEntry,
OBinarySerializer<String> keySerializer,
OBinarySerializer<V> valueSerializer,
OEncryption encryption) |
Modifier and Type | Method and Description |
---|---|
boolean |
addEntry(int index,
OPrefixBTreeBucket.SBTreeEntry<V> treeEntry,
boolean updateNeighbors) |
int |
find(String key) |
String |
getBucketPrefix() |
OPrefixBTreeBucket.SBTreeEntry<V> |
getEntry(int entryIndex) |
int |
getLeft(int entryIndex) |
int |
getRight(int entryIndex) |
OSBTreeValue<V> |
getValue(int entryIndex)
Obtains the value stored under the given entry index in this bucket.
|
boolean |
isEmpty() |
boolean |
isLeaf() |
void |
remove(int entryIndex) |
int |
size() |
deserializeFromDirectMemory, getBinaryValue, getByteValue, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getObjectSizeInDirectMemory, getPageData, moveData, restoreChanges, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, toString
public OPrefixBTreeBucket(OCacheEntry cacheEntry, OBinarySerializer<String> keySerializer, OBinarySerializer<V> valueSerializer, OEncryption encryption)
public boolean isEmpty()
public String getBucketPrefix()
public int find(String key)
public void remove(int entryIndex)
public int size()
public OPrefixBTreeBucket.SBTreeEntry<V> getEntry(int entryIndex)
public int getLeft(int entryIndex)
public int getRight(int entryIndex)
public OSBTreeValue<V> getValue(int entryIndex)
entryIndex
- the value entry index.public boolean isLeaf()
public boolean addEntry(int index, OPrefixBTreeBucket.SBTreeEntry<V> treeEntry, boolean updateNeighbors)
Copyright © 2009–2019 OrientDB. All rights reserved.