com.caucho.db.index
Class KeyCompare

java.lang.Object
  extended by com.caucho.db.index.KeyCompare
Direct Known Subclasses:
BinaryKeyCompare, IntKeyCompare, LongKeyCompare, StringKeyCompare, VarBinaryKeyCompare

public class KeyCompare
extends java.lang.Object

Compares two keys.


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

KeyCompare

public KeyCompare()
Method Detail

compare

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


toString

public java.lang.String toString(byte[] buffer,
                                 int offset,
                                 int length)