tokyocabinet
Interface BDBCMP


public interface BDBCMP

Custom comparator is an interface which has a method to compare two keys of B+ tree records.


Method Summary
 int compare(byte[] a, byte[] b)
          Compare two keys of B+ tree records.
 

Method Detail

compare

int compare(byte[] a,
            byte[] b)
Compare two keys of B+ tree records.

Parameters:
a - one key.
b - the other key.
Returns:
It is positive if the former is big, negative if the latter is big, 0 if both are equivalent.