public class CustomUserComparator extends Object implements UserComparator
| Constructor and Description |
|---|
CustomUserComparator(DBComparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Slice o1,
Slice o2) |
Slice |
findShortestSeparator(Slice start,
Slice limit) |
Slice |
findShortSuccessor(Slice key) |
String |
name() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic CustomUserComparator(DBComparator comparator)
public String name()
name in interface UserComparatorpublic Slice findShortestSeparator(Slice start, Slice limit)
findShortestSeparator in interface UserComparatorpublic Slice findShortSuccessor(Slice key)
findShortSuccessor in interface UserComparatorpublic int compare(Slice o1, Slice o2)
compare in interface Comparator<Slice>Copyright © 2011–2019. All rights reserved.