Package org.iq80.leveldb
Interface DBComparator
- All Superinterfaces:
Comparator<byte[]>
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]findShortestSeparator(byte[] start, byte[] limit) Ifstart < 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.name()Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
name
String name() -
findShortestSeparator
byte[] findShortestSeparator(byte[] start, byte[] limit) Ifstart < limit, returns a short key in [start,limit). Simple comparator implementations should return start unchanged, -
findShortSuccessor
byte[] findShortSuccessor(byte[] key) returns a 'short key' where the 'short key' is greater than or equal to key. Simple comparator implementations should return key unchanged,
-