Class ByteArrayHashKey

java.lang.Object
org.apache.hadoop.hbase.util.HashKey<byte[]>
org.apache.hadoop.hbase.util.ByteArrayHashKey

@Private public class ByteArrayHashKey extends HashKey<byte[]>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final int
     

    Fields inherited from class org.apache.hadoop.hbase.util.HashKey

    t
  • Constructor Summary

    Constructors
    Constructor
    Description
    ByteArrayHashKey(byte[] t, int offset, int length)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    get(int pos)
    Return The byte at the given position in this HashKey
    private int
    getAbsolutePos(int pos)
     
    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

    • offset

      private final int offset
    • length

      private final int length
  • Constructor Details

    • ByteArrayHashKey

      public ByteArrayHashKey(byte[] t, int offset, int length)
  • Method Details

    • get

      public byte get(int pos)
      Description copied from class: HashKey
      Return The byte at the given position in this HashKey
      Specified by:
      get in class HashKey<byte[]>
    • getAbsolutePos

      private int getAbsolutePos(int pos)
    • length

      public int length()
      Description copied from class: HashKey
      Returns The number of bytes in this HashKey
      Specified by:
      length in class HashKey<byte[]>