com.caucho.db.index
Class IntKeyCompare

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

public class IntKeyCompare
extends KeyCompare

Compares two keys.


Constructor Summary
IntKeyCompare()
           
 
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)
          Returns a printable version of the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntKeyCompare

public IntKeyCompare()
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)
Returns a printable version of the string.

Overrides:
toString in class KeyCompare