public final class OHashIndexBucket<K,V> extends ODurablePage implements Iterable<OHashTable.Entry<K,V>>
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET
Modifier and Type | Method and Description |
---|---|
boolean |
addEntry(long hashCode,
K key,
V value) |
OHashTable.Entry<K,V> |
find(K key,
long hashCode) |
int |
getContentSize() |
int |
getDepth() |
OHashTable.Entry<K,V> |
getEntry(int index) |
int |
getIndex(long hashCode,
K key) |
K |
getKey(int index) |
V |
getValue(int index)
Obtains the value stored under the given index in this bucket.
|
void |
init(int depth) |
Iterator<OHashTable.Entry<K,V>> |
iterator() |
Iterator<OHashTable.Entry<K,V>> |
iterator(int index) |
void |
setDepth(int depth) |
int |
size() |
addPageOperation, deserializeFromDirectMemory, getBinaryValue, getByteValue, getCacheEntry, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLsn, getLSN, getObjectSizeInDirectMemory, getPageData, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, setPageLSN, setShortValue, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public void init(int depth) throws IOException
IOException
public OHashTable.Entry<K,V> find(K key, long hashCode)
public OHashTable.Entry<K,V> getEntry(int index)
public V getValue(int index)
index
- the value index.public K getKey(int index)
public int getIndex(long hashCode, K key)
public int size()
public Iterator<OHashTable.Entry<K,V>> iterator()
iterator
in interface Iterable<OHashTable.Entry<K,V>>
public Iterator<OHashTable.Entry<K,V>> iterator(int index)
public int getContentSize()
public int getDepth()
public void setDepth(int depth)
Copyright © 2009–2020 OrientDB. All rights reserved.