com.caucho.db.index
Class StringKeyCompare

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

public class StringKeyCompare
extends KeyCompare

Compares two keys.


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

StringKeyCompare

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