com.caucho.db.index
Class VarBinaryKeyCompare

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

public class VarBinaryKeyCompare
extends KeyCompare

Compares two keys.


Constructor Summary
VarBinaryKeyCompare()
           
 
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

VarBinaryKeyCompare

public VarBinaryKeyCompare()
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