Package org.apache.hadoop.hbase.util
Class Bytes.LexicographicalComparerHolder
java.lang.Object
org.apache.hadoop.hbase.util.Bytes.LexicographicalComparerHolder
- Enclosing class:
- Bytes
Provides a lexicographical comparer implementation; either a Java implementation or a faster
implementation based on
Unsafe
.
Uses reflection to gracefully fall back to the Java implementation if Unsafe
isn't
available.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
(package private) static enum
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Bytes.Comparer<byte[]>
(package private) static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static Bytes.Comparer<byte[]>
Returns the Unsafe-using Comparer, or falls back to the pure-Java implementation if unable to do so.
-
Field Details
-
UNSAFE_COMPARER_NAME
-
BEST_COMPARER
-
-
Constructor Details
-
LexicographicalComparerHolder
-
-
Method Details
-
getBestComparer
Returns the Unsafe-using Comparer, or falls back to the pure-Java implementation if unable to do so.
-