Interface DBComparator

All Superinterfaces:
Comparator<byte[]>

public interface DBComparator extends Comparator<byte[]>
  • Method Details

    • name

      String name()
    • findShortestSeparator

      byte[] findShortestSeparator(byte[] start, byte[] limit)
      If start < 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,