public interface DBComparator extends Comparator<byte[]>
Modifier and Type | Method and Description |
---|---|
byte[] |
findShortestSeparator(byte[] start,
byte[] limit)
If
start < limit , returns a short key in [start,limit). |
byte[] |
findShortSuccessor(byte[] key)
returns a 'short key' where the 'short key' is greater than or equal to key.
|
String |
name() |
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
String name()
byte[] findShortestSeparator(byte[] start, byte[] limit)
start < limit
, returns a short key in [start,limit).
Simple comparator implementations should return start unchanged,byte[] findShortSuccessor(byte[] key)
Copyright © 2011–2019. All rights reserved.