Class HashKey<T>

java.lang.Object
org.apache.hadoop.hbase.util.HashKey<T>
Direct Known Subclasses:
ByteArrayHashKey, CellHashKey

@Private public abstract class HashKey<T> extends Object
Used to calculate the hash Hash algorithms for Bloomfilters.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final T
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract byte
    get(int pos)
    Return The byte at the given position in this HashKey
    abstract int
    getIntLE(int pos)
    Returns the little-endian 32-bit int value starting at the given position in this HashKey.
    abstract int
    Returns The number of bytes in this HashKey

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • t

      protected final T t
  • Constructor Details

  • Method Details

    • get

      public abstract byte get(int pos)
      Return The byte at the given position in this HashKey
    • length

      public abstract int length()
      Returns The number of bytes in this HashKey
    • getIntLE

      public abstract int getIntLE(int pos)
      Returns the little-endian 32-bit int value starting at the given position in this HashKey.
      Parameters:
      pos - the starting offset of the 4-byte little-endian int
      Returns:
      the 32-bit value decoded in little-endian order