static class Bytes.LexicographicalComparerHolder extends Object
Unsafe
.
Uses reflection to gracefully fall back to the Java implementation if
Unsafe
isn't available.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Bytes.LexicographicalComparerHolder.PureJavaComparer |
(package private) static class |
Bytes.LexicographicalComparerHolder.UnsafeComparer |
Modifier and Type | Field and Description |
---|---|
(package private) static Bytes.Comparer<byte[]> |
BEST_COMPARER |
(package private) static String |
UNSAFE_COMPARER_NAME |
Constructor and Description |
---|
Bytes.LexicographicalComparerHolder() |
Modifier and Type | Method and Description |
---|---|
(package private) static Bytes.Comparer<byte[]> |
getBestComparer()
Returns the Unsafe-using Comparer, or falls back to the pure-Java
implementation if unable to do so.
|
static final String UNSAFE_COMPARER_NAME
static final Bytes.Comparer<byte[]> BEST_COMPARER
static Bytes.Comparer<byte[]> getBestComparer()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.