org.apache.hadoop.hbase
Interface KeyValue.SamePrefixComparator<T>
- All Known Implementing Classes:
- KeyValue.KeyComparator, KeyValue.MetaKeyComparator
- Enclosing class:
- KeyValue
public static interface KeyValue.SamePrefixComparator<T>
Avoids redundant comparisons for better performance.
Method Summary |
int |
compareIgnoringPrefix(int commonPrefix,
T left,
int loffset,
int llength,
T right,
int roffset,
int rlength)
Compare two keys assuming that the first n bytes are the same. |
compareIgnoringPrefix
int compareIgnoringPrefix(int commonPrefix,
T left,
int loffset,
int llength,
T 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 © 2013 The Apache Software Foundation. All Rights Reserved.