public interface

DBComparator

implements Comparator<T>
org.iq80.leveldb.DBComparator

Summary

Public Methods
abstract byte[] findShortSuccessor(byte[] key)
returns a 'short key' where the 'short key' >= key.
abstract byte[] findShortestSeparator(byte[] start, byte[] limit)
If start < limit, returns a short key in [start,limit).
abstract String name()
[Expand]
Inherited Methods
From interface java.util.Comparator

Public Methods

public abstract byte[] findShortSuccessor (byte[] key)

returns a 'short key' where the 'short key' >= key. Simple comparator implementations should return key unchanged,

public abstract byte[] findShortestSeparator (byte[] start, byte[] limit)

If start < limit, returns a short key in [start,limit). Simple comparator implementations should return start unchanged,

public abstract String name ()