public class InternalKeyComparator extends Object implements Comparator<InternalKey>
Constructor and Description |
---|
InternalKeyComparator(UserComparator userComparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(InternalKey left,
InternalKey right) |
UserComparator |
getUserComparator() |
boolean |
isOrdered(InternalKey... keys)
Returns
true if each element in iterable after the first is
greater than or equal to the element that preceded it, according to this
ordering. |
boolean |
isOrdered(Iterable<InternalKey> keys)
Returns
true if each element in iterable after the first is
greater than or equal to the element that preceded it, according to this
ordering. |
String |
name() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public InternalKeyComparator(UserComparator userComparator)
public UserComparator getUserComparator()
public String name()
public int compare(InternalKey left, InternalKey right)
compare
in interface Comparator<InternalKey>
public boolean isOrdered(InternalKey... keys)
true
if each element in iterable
after the first is
greater than or equal to the element that preceded it, according to this
ordering. Note that this is always true when the iterable has fewer than
two elements.public boolean isOrdered(Iterable<InternalKey> keys)
true
if each element in iterable
after the first is
greater than or equal to the element that preceded it, according to this
ordering. Note that this is always true when the iterable has fewer than
two elements.Copyright © 2011–2019. All rights reserved.