public static class KeyValue.KeyComparator extends Object implements org.apache.hadoop.io.RawComparator<byte[]>, KeyValue.SamePrefixComparator<byte[]>
KeyValue
.Constructor and Description |
---|
KeyValue.KeyComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] left,
byte[] right) |
int |
compare(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength) |
protected int |
compareColumns(byte[] left,
int loffset,
int llength,
int lfamilylength,
byte[] right,
int roffset,
int rlength,
int rfamilylength) |
int |
compareIgnoringPrefix(int commonPrefix,
byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
Compare the two key-values, ignoring the prefix of the given length
that is known to be the same between the two.
|
int |
compareRows(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public int compare(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
compare
in interface org.apache.hadoop.io.RawComparator<byte[]>
public int compareIgnoringPrefix(int commonPrefix, byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
compareIgnoringPrefix
in interface KeyValue.SamePrefixComparator<byte[]>
commonPrefix
- the prefix length to ignorepublic int compare(byte[] left, byte[] right)
compare
in interface Comparator<byte[]>
public int compareRows(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
protected int compareColumns(byte[] left, int loffset, int llength, int lfamilylength, byte[] right, int roffset, int rlength, int rfamilylength)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.