Class HashIndexBucketV2<K,V>
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.index.hashindex.local.v2.HashIndexBucketV2<K,V>
- Since:
- 2/17/13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEntry(int index, long hashCode, byte[] key, byte[] value) voiddeleteEntry(int index, long hashCode, byte[] key, byte[] value) find(K key, long hashCode, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) intintgetDepth()getEntry(int index, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) intgetIndex(long hashCode, K key, OEncryption encryption, OBinarySerializer<K> keySerializer) getKey(int index, OEncryption encryption, OBinarySerializer<K> keySerializer) getRawEntry(int index, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) byte[]getRawValue(int index, int keySize, OBinarySerializer<V> valueSerializer) getValue(int index, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) Obtains the value stored under the given index in this bucket.voidinit(int depth) iterator(int index, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OEncryption encryption) iterator(OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OEncryption encryption) voidsetDepth(int depth) intsize()intupdateEntry(int index, byte[] value, byte[] oldValue, int keySize) Methods inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
deserializeFromDirectMemory, getBinaryValue, getByteValue, getCacheEntry, getChanges, getIntArray, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLSN, getObjectSizeInDirectMemory, getPageData, getPageIndex, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntArray, setIntValue, setLongValue, setLsn, setPageLSN, setShortValue, toString
-
Constructor Details
-
HashIndexBucketV2
-
-
Method Details
-
init
public void init(int depth) -
find
public OHashTable.Entry<K,V> find(K key, long hashCode, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) -
getEntry
public OHashTable.Entry<K,V> getEntry(int index, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) -
getRawEntry
public OHashTable.RawEntry getRawEntry(int index, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) -
getRawValue
-
getValue
public V getValue(int index, OEncryption encryption, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer) Obtains the value stored under the given index in this bucket.- Parameters:
index- the value index.- Returns:
- the obtained value.
-
getKey
-
getIndex
public int getIndex(long hashCode, K key, OEncryption encryption, OBinarySerializer<K> keySerializer) -
size
public int size() -
iterator
public Iterator<OHashTable.RawEntry> iterator(OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OEncryption encryption) -
iterator
public Iterator<OHashTable.Entry<K,V>> iterator(int index, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OEncryption encryption) -
getContentSize
public int getContentSize() -
updateEntry
public int updateEntry(int index, byte[] value, byte[] oldValue, int keySize) -
deleteEntry
public void deleteEntry(int index, long hashCode, byte[] key, byte[] value) -
addEntry
public boolean addEntry(int index, long hashCode, byte[] key, byte[] value) -
getDepth
public int getDepth() -
setDepth
public void setDepth(int depth)
-