Class LongLongSwissHash

java.lang.Object
org.elasticsearch.swisshash.SwissHash
org.elasticsearch.swisshash.LongLongSwissHash
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.util.Accountable, LongLongHashTable, org.elasticsearch.core.Releasable

public class LongLongSwissHash extends SwissHash implements LongLongHashTable
Specialization for LongSwissHash, for LongLong.
  • Method Details

    • find

      public long find(long key1, long key2)
      Finds an id by a key1 and a key2.
      Specified by:
      find in interface LongLongHashTable
    • add

      public long add(long key1, long key2)
      Add a key, returning its ids. If it was already present it's previous assigned id will be returned. If it wasn't present it'll be assigned a new id.
      Specified by:
      add in interface LongLongHashTable
    • status

      public SwissHash.Status status()
      Description copied from class: SwissHash
      Performance information hopefully useful for debugging.
      Specified by:
      status in class SwissHash
    • iterator

      public LongLongSwissHash.Itr iterator()
      Description copied from class: SwissHash
      Build an iterator to walk all values and ids.
      Specified by:
      iterator in class SwissHash
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable
    • getKey1

      public long getKey1(long id)
      Specified by:
      getKey1 in interface LongLongHashTable
    • getKey2

      public long getKey2(long id)
      Specified by:
      getKey2 in interface LongLongHashTable
    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable