com.caucho.db.index
Class BinaryKeyCompare

java.lang.Object
  extended by com.caucho.db.index.KeyCompare
      extended by com.caucho.db.index.BinaryKeyCompare

public class BinaryKeyCompare
extends KeyCompare

Compares two keys.


Constructor Summary
BinaryKeyCompare(int length)
           
 
Method Summary
 int compare(byte[] keyBuffer, int keyOffset, byte[] block, int offset, int length)
          Compares the key to the block data.
 java.lang.String toString(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryKeyCompare

public BinaryKeyCompare(int length)
Method Detail

compare

public int compare(byte[] keyBuffer,
                   int keyOffset,
                   byte[] block,
                   int offset,
                   int length)
Compares the key to the block data.

Overrides:
compare in class KeyCompare

toString

public java.lang.String toString(byte[] buffer,
                                 int offset,
                                 int length)
Overrides:
toString in class KeyCompare