org.apache.hadoop.hbase
Interface KeyValue.SamePrefixComparator<T>

All Known Implementing Classes:
KeyValue.KVComparator, KeyValue.MetaComparator, KeyValue.RawBytesComparator
Enclosing class:
KeyValue

public static interface KeyValue.SamePrefixComparator<T>

Avoids redundant comparisons for better performance. TODO get rid of this wart


Method Summary
 int compareIgnoringPrefix(int commonPrefix, byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
          Compare two keys assuming that the first n bytes are the same.
 

Method Detail

compareIgnoringPrefix

int compareIgnoringPrefix(int commonPrefix,
                          byte[] left,
                          int loffset,
                          int llength,
                          byte[] right,
                          int roffset,
                          int rlength)
Compare two keys assuming that the first n bytes are the same.

Parameters:
commonPrefix - How many bytes are the same.


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.