Class LittleEndianBytes

java.lang.Object
org.apache.hadoop.hbase.util.LittleEndianBytes

@Private public final class LittleEndianBytes extends Object
Utility methods for reading and writing little-endian integers from byte[] and ByteBuffer. Used by hashing components to perform fast, low-level LE conversions with optional Unsafe acceleration.
  • Field Details

  • Constructor Details

  • Method Details

    • putInt

      public static void putInt(byte[] bytes, int offset, int val)
    • toInt

      public static int toInt(byte[] bytes, int offset)
    • toInt

      public static int toInt(ByteBuffer buffer, int offset)
    • getRowAsInt

      public static int getRowAsInt(Cell cell, int offset)
    • getQualifierAsInt

      public static int getQualifierAsInt(Cell cell, int offset)