CellComparatorImpl
. Deprecated for hbase 2.0, remove for hbase 3.0.@Deprecated public static class KeyValue.KVComparator extends Object implements org.apache.hadoop.io.RawComparator<Cell>, KeyValue.SamePrefixComparator<byte[]>
Constructor and Description |
---|
KVComparator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
calcIndexKey(byte[] lastKeyOfPreviousBlock,
byte[] firstKeyInBlock)
Deprecated.
|
protected KeyValue.KVComparator |
clone()
Deprecated.
|
int |
compare(byte[] l,
int loff,
int llen,
byte[] r,
int roff,
int rlen)
Deprecated.
|
int |
compare(Cell left,
Cell right)
Deprecated.
Compares the Key of a cell -- with fields being more significant in this order: rowkey,
colfam/qual, timestamp, type, mvcc
|
protected int |
compareColumns(byte[] left,
int loffset,
int lquallength,
byte[] right,
int roffset,
int rquallength)
Deprecated.
|
protected int |
compareColumns(byte[] left,
int loffset,
int llength,
int lfamilylength,
byte[] right,
int roffset,
int rlength,
int rfamilylength)
Deprecated.
|
(package private) int |
compareColumns(Cell left,
short lrowlength,
Cell right,
short rrowlength)
Deprecated.
|
protected int |
compareFamilies(byte[] left,
int loffset,
int lfamilylength,
byte[] right,
int roffset,
int rfamilylength)
Deprecated.
|
int |
compareFlatKey(byte[] left,
byte[] right)
Deprecated.
|
int |
compareFlatKey(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
Deprecated.
Compares left to right assuming that left,loffset,llength and right,roffset,rlength are full
KVs laid out in a flat byte[]s.
|
int |
compareIgnoringPrefix(int commonPrefix,
byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
Deprecated.
Overridden
|
int |
compareKey(Cell cell,
byte[] row,
int roff,
int rlen,
byte[] fam,
int foff,
int flen,
byte[] col,
int coff,
int clen,
long ts,
byte type)
Deprecated.
|
int |
compareOnlyKeyPortion(Cell left,
Cell right)
Deprecated.
|
protected int |
compareRowKey(Cell left,
Cell right)
Deprecated.
Compares the only the user specified portion of a Key.
|
int |
compareRows(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
Deprecated.
Get the b[],o,l for left and right rowkey portions and compare.
|
int |
compareRows(Cell left,
Cell right)
Deprecated.
Compares the rows of a cell
|
int |
compareTimestamps(Cell left,
Cell right)
Deprecated.
|
(package private) static int |
compareTimestamps(long ltimestamp,
long rtimestamp)
Deprecated.
|
private int |
compareWithoutRow(int commonPrefix,
byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength,
short rowlength)
Deprecated.
Compare columnFamily, qualifier, timestamp, and key type (everything except the row).
|
String |
getLegacyKeyComparatorName()
Deprecated.
The HFileV2 file format's trailer contains this class name.
|
byte[] |
getShortMidpointKey(byte[] leftKey,
byte[] rightKey)
Deprecated.
Since 0.99.2;
|
boolean |
matchingRowColumn(Cell left,
Cell right)
Deprecated.
Compares the row and column of two keyvalues for equality
|
boolean |
matchingRows(byte[] left,
int loffset,
int llength,
byte[] right,
int roffset,
int rlength)
Deprecated.
Compare rows.
|
boolean |
matchingRows(Cell left,
Cell right)
Deprecated.
Compares the row of two keyvalues for equality
|
private boolean |
matchingRows(Cell left,
short lrowlength,
Cell right,
short rrowlength)
Deprecated.
Compares the row of two keyvalues for equality
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public KVComparator()
public String getLegacyKeyComparatorName()
public int compare(byte[] l, int loff, int llen, byte[] r, int roff, int rlen)
compare
in interface org.apache.hadoop.io.RawComparator<Cell>
protected int compareRowKey(Cell left, Cell right)
left
- left cell to compare row keyright
- right cell to compare row keypublic int compareFlatKey(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
left
- the left kv serialized byte[] to be compared withloffset
- the offset in the left byte[]llength
- the length in the left byte[]right
- the right kv serialized byte[] to be compared withroffset
- the offset in the right byte[]rlength
- the length in the right byte[]public int compareFlatKey(byte[] left, byte[] right)
public int compareKey(Cell cell, byte[] row, int roff, int rlen, byte[] fam, int foff, int flen, byte[] col, int coff, int clen, long ts, byte type)
public int compareOnlyKeyPortion(Cell left, Cell right)
public int compare(Cell left, Cell right)
compare
in interface Comparator<Cell>
public int compareTimestamps(Cell left, Cell right)
public int compareRows(Cell left, Cell right)
left
- left cell to compare rows forright
- right cell to compare rows forpublic int compareRows(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
left
- the left kv serialized byte[] to be compared withloffset
- the offset in the left byte[]llength
- the length in the left byte[]right
- the right kv serialized byte[] to be compared withroffset
- the offset in the right byte[]rlength
- the length in the right byte[]int compareColumns(Cell left, short lrowlength, Cell right, short rrowlength)
protected int compareColumns(byte[] left, int loffset, int llength, int lfamilylength, byte[] right, int roffset, int rlength, int rfamilylength)
static int compareTimestamps(long ltimestamp, long rtimestamp)
public int compareIgnoringPrefix(int commonPrefix, byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
compareIgnoringPrefix
in interface KeyValue.SamePrefixComparator<byte[]>
commonPrefix
- location of expected common prefixleft
- the left kv serialized byte[] to be compared withloffset
- the offset in the left byte[]llength
- the length in the left byte[]right
- the right kv serialized byte[] to be compared withroffset
- the offset in the byte[]rlength
- the length in the right byte[]private int compareWithoutRow(int commonPrefix, byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength, short rowlength)
protected int compareFamilies(byte[] left, int loffset, int lfamilylength, byte[] right, int roffset, int rfamilylength)
protected int compareColumns(byte[] left, int loffset, int lquallength, byte[] right, int roffset, int rquallength)
public boolean matchingRowColumn(Cell left, Cell right)
left
- left cell to compare row and columnright
- right cell to compare row and columnpublic boolean matchingRows(Cell left, Cell right)
left
- left cell to compare rowright
- right cell to compare rowprivate boolean matchingRows(Cell left, short lrowlength, Cell right, short rrowlength)
left
- left cell to compare rowlrowlength
- left row lengthright
- right cell to compare rowrrowlength
- right row lengthpublic boolean matchingRows(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength)
left
- Left row array.loffset
- Left row offset.llength
- Left row length.right
- Right row array.roffset
- Right row offset.rlength
- Right row length.public byte[] calcIndexKey(byte[] lastKeyOfPreviousBlock, byte[] firstKeyInBlock)
@Deprecated public byte[] getShortMidpointKey(byte[] leftKey, byte[] rightKey)
leftKey
- byte array for left KeyrightKey
- byte array for right Keyprotected KeyValue.KVComparator clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.