java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.index.hashindex.local.v3.OHashIndexBucket<K,V>
All Implemented Interfaces:
Iterable<OHashTable.Entry<K,V>>

public final class OHashIndexBucket<K,V> extends ODurablePage implements Iterable<OHashTable.Entry<K,V>>
Since:
2/17/13
Author:
Andrey Lomakin (a.lomakin-at-orientdb.com)
  • Method Details

    • init

      public void init(int depth) throws IOException
      Throws:
      IOException
    • find

      public OHashTable.Entry<K,V> find(K key, long hashCode)
    • getEntry

      public OHashTable.Entry<K,V> getEntry(int index)
    • getValue

      public V getValue(int index)
      Obtains the value stored under the given index in this bucket.
      Parameters:
      index - the value index.
      Returns:
      the obtained value.
    • getKey

      public K getKey(int index)
    • getIndex

      public int getIndex(long hashCode, K key)
    • size

      public int size()
    • iterator

      public Iterator<OHashTable.Entry<K,V>> iterator()
      Specified by:
      iterator in interface Iterable<K>
    • iterator

      public Iterator<OHashTable.Entry<K,V>> iterator(int index)
    • getContentSize

      public int getContentSize()
    • addEntry

      public boolean addEntry(long hashCode, K key, V value)
    • getDepth

      public int getDepth()
    • setDepth

      public void setDepth(int depth)