public class ReverseBytewiseComparator extends BytewiseComparator
Slice
The performance of Comparators implemented in Java is always
less than their C++ counterparts due to the bridging overhead,
as such you likely don't want to use this apart from benchmarking
and you most likely instead wanted
BuiltinComparator.REVERSE_BYTEWISE_COMPARATOR
nativeHandle_
Constructor and Description |
---|
ReverseBytewiseComparator(ComparatorOptions copt) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Slice a,
Slice b)
Three-way key comparison
|
java.lang.String |
name()
The name of the comparator.
|
findShortestSeparator, findShortSuccessor
initializeNative
disposeInternal
close, disOwnNativeHandle, isOwningHandle
dispose, finalize
public ReverseBytewiseComparator(ComparatorOptions copt)
public java.lang.String name()
AbstractComparator
name
in class BytewiseComparator
public int compare(Slice a, Slice b)
AbstractComparator
compare
in class BytewiseComparator
a
- Slice access to first keyb
- Slice access to second key