com.caucho.db.index
Class LongKeyCompare

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

public class LongKeyCompare
extends KeyCompare

Compares two long keys.


Constructor Summary
LongKeyCompare()
           
 
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[] keyBuffer, int keyOffset, int length)
          Compares the key to the block data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongKeyCompare

public LongKeyCompare()
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[] keyBuffer,
                                 int keyOffset,
                                 int length)
Compares the key to the block data.

Overrides:
toString in class KeyCompare