Package org.apache.hadoop.hbase
Interface KeyValue.SamePrefixComparator<T>
- All Known Implementing Classes:
KeyValue.KVComparator
,KeyValue.MetaComparator
- Enclosing class:
- KeyValue
public static interface KeyValue.SamePrefixComparator<T>
Avoids redundant comparisons for better performance. TODO get rid of this wart
-
Method Summary
Modifier and TypeMethodDescriptionint
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 Details
-
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.
-