Package org.apache.hadoop.hbase.util
Class LittleEndianBytes
java.lang.Object
org.apache.hadoop.hbase.util.LittleEndianBytes
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetQualifierAsInt(Cell cell, int offset) static intgetRowAsInt(Cell cell, int offset) static voidputInt(byte[] bytes, int offset, int val) static inttoInt(byte[] bytes, int offset) static inttoInt(ByteBuffer buffer, int offset)
-
Field Details
-
UNSAFE_UNALIGNED
-
-
Constructor Details
-
LittleEndianBytes
private LittleEndianBytes()
-
-
Method Details
-
putInt
-
toInt
-
toInt
-
getRowAsInt
-
getQualifierAsInt
-