
public class OHashIndexBucket<K,V> extends ODurablePage implements Iterable<OHashIndexBucket.Entry<K,V>>
| Modifier and Type | Class and Description |
|---|---|
static class |
OHashIndexBucket.Entry<K,V> |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BUCKET_SIZE_BYTES |
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET| Constructor and Description |
|---|
OHashIndexBucket(int depth,
OCacheEntry cacheEntry,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OType[] keyTypes,
OEncryption encryption) |
OHashIndexBucket(OCacheEntry cacheEntry,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OType[] keyTypes,
OEncryption encryption) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(long hashCode,
K key,
V value) |
void |
appendEntry(long hashCode,
K key,
V value) |
OHashIndexBucket.Entry<K,V> |
deleteEntry(int index) |
OHashIndexBucket.Entry<K,V> |
find(K key,
long hashCode) |
int |
getContentSize() |
int |
getDepth() |
OHashIndexBucket.Entry<K,V> |
getEntry(int index) |
long |
getHashCode(int index) |
int |
getIndex(long hashCode,
K key) |
K |
getKey(int index) |
long |
getNextRemovedBucketPair() |
long |
getSplitHistory(int level) |
V |
getValue(int index)
Obtains the value stored under the given index in this bucket.
|
void |
init(int depth) |
Iterator<OHashIndexBucket.Entry<K,V>> |
iterator() |
Iterator<OHashIndexBucket.Entry<K,V>> |
iterator(int index) |
int |
mergedSize(OHashIndexBucket buddyBucket) |
void |
setDepth(int depth) |
void |
setNextRemovedBucketPair(long nextRemovedBucketPair) |
void |
setSplitHistory(int level,
long position) |
int |
size() |
int |
updateEntry(int index,
V value) |
deserializeFromDirectMemory, getBinaryValue, getByteValue, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLsn, getObjectSizeInDirectMemory, getPageData, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, setShortValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic OHashIndexBucket(int depth,
OCacheEntry cacheEntry,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OType[] keyTypes,
OEncryption encryption)
throws IOException
IOExceptionpublic OHashIndexBucket(OCacheEntry cacheEntry, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OType[] keyTypes, OEncryption encryption)
public void init(int depth)
throws IOException
IOExceptionpublic OHashIndexBucket.Entry<K,V> find(K key, long hashCode)
public OHashIndexBucket.Entry<K,V> getEntry(int index)
public V getValue(int index)
index - the value index.public long getHashCode(int index)
public K getKey(int index)
public int getIndex(long hashCode,
K key)
public int size()
public Iterator<OHashIndexBucket.Entry<K,V>> iterator()
iterator in interface Iterable<OHashIndexBucket.Entry<K,V>>public Iterator<OHashIndexBucket.Entry<K,V>> iterator(int index)
public int mergedSize(OHashIndexBucket buddyBucket)
public int getContentSize()
public int updateEntry(int index,
V value)
throws IOException
IOExceptionpublic OHashIndexBucket.Entry<K,V> deleteEntry(int index) throws IOException
IOExceptionpublic boolean addEntry(long hashCode,
K key,
V value)
throws IOException
IOExceptionpublic void appendEntry(long hashCode,
K key,
V value)
throws IOException
IOExceptionpublic int getDepth()
public void setDepth(int depth)
public long getNextRemovedBucketPair()
public void setNextRemovedBucketPair(long nextRemovedBucketPair)
throws IOException
IOExceptionpublic long getSplitHistory(int level)
public void setSplitHistory(int level,
long position)
throws IOException
IOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.