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_COMPARATORnativeHandle_| 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, findShortSuccessorinitializeNativedisposeInternalclose, disOwnNativeHandle, isOwningHandledispose, finalizepublic ReverseBytewiseComparator(ComparatorOptions copt)
public java.lang.String name()
AbstractComparatorname in class BytewiseComparatorpublic int compare(Slice a, Slice b)
AbstractComparatorcompare in class BytewiseComparatora - Slice access to first keyb - Slice access to second key