@InterfaceAudience.Private @InterfaceStability.Evolving public class CellComparator extends Object implements Comparator<Cell>, Serializable
-ROOT-
or
hbase:meta
cells. Cells from these tables need a specialized comparator, one that
takes account of the special formatting of the row where we have commas to delimit table from
regionname, from row. See KeyValue for how it has a special comparator to do hbase:meta cells
and yet another for -ROOT-.Constructor and Description |
---|
CellComparator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areKeyLengthsEqual(Cell a,
Cell b)
lengths
|
static boolean |
areRowLengthsEqual(Cell a,
Cell b) |
int |
compare(Cell a,
Cell b) |
static int |
compareStatic(Cell a,
Cell b) |
static int |
compareStatic(Cell a,
Cell b,
boolean onlyKey) |
static boolean |
equals(Cell a,
Cell b)
equals
|
static boolean |
equalsFamily(Cell a,
Cell b) |
static boolean |
equalsIgnoreMvccVersion(Cell a,
Cell b)
special case for KeyValue.equals
|
static boolean |
equalsQualifier(Cell a,
Cell b) |
static boolean |
equalsRow(Cell a,
Cell b) |
static boolean |
equalsTimestamp(Cell a,
Cell b) |
static boolean |
equalsType(Cell a,
Cell b) |
static int |
hashCode(Cell cell)
Returns a hash code that is always the same for two Cells having a matching equals(..) result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public int compare(Cell a, Cell b)
compare
in interface Comparator<Cell>
public static int hashCode(Cell cell)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.