Package org.apache.hadoop.hbase
Class KeyValue.MetaComparator
java.lang.Object
org.apache.hadoop.hbase.KeyValue.KVComparator
org.apache.hadoop.hbase.KeyValue.MetaComparator
- All Implemented Interfaces:
Comparator<Cell>
,KeyValue.SamePrefixComparator<byte[]>
,org.apache.hadoop.io.RawComparator<Cell>
- Enclosing class:
- KeyValue
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected KeyValue.MetaComparator
clone()
Deprecated.int
Deprecated.Compare key portion of aKeyValue
for keys inhbase:meta
table.int
compareOnlyKeyPortion
(Cell left, Cell right) Deprecated.protected int
compareRowKey
(Cell l, Cell r) Deprecated.Override the row key comparison to parse and compare the meta row key parts.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.Deprecated.The HFileV2 file format's trailer contains this class name.byte[]
getShortMidpointKey
(byte[] leftKey, byte[] rightKey) Deprecated.Don't do any fancy Block Index splitting tricks.Methods inherited from class org.apache.hadoop.hbase.KeyValue.KVComparator
calcIndexKey, compare, compareColumns, compareColumns, compareColumns, compareFamilies, compareFlatKey, compareFlatKey, compareIgnoringPrefix, compareKey, compareRows, compareTimestamps, compareTimestamps, matchingRowColumn, matchingRows, matchingRows
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MetaComparator
public MetaComparator()Deprecated.
-
-
Method Details
-
compare
Deprecated.Compare key portion of aKeyValue
for keys inhbase:meta
table.- Specified by:
compare
in interfaceComparator<Cell>
- Overrides:
compare
in classKeyValue.KVComparator
-
compareOnlyKeyPortion
Deprecated.- Overrides:
compareOnlyKeyPortion
in classKeyValue.KVComparator
-
compareRows
public int compareRows(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength) Deprecated.Description copied from class:KeyValue.KVComparator
Get the b[],o,l for left and right rowkey portions and compare.- Overrides:
compareRows
in classKeyValue.KVComparator
- Parameters:
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[]- Returns:
- 0 if equal, <0 if left smaller, >0 if right smaller
-
getShortMidpointKey
Deprecated.Don't do any fancy Block Index splitting tricks.- Overrides:
getShortMidpointKey
in classKeyValue.KVComparator
- Parameters:
leftKey
- byte array for left KeyrightKey
- byte array for right Key- Returns:
- 0 if equal, <0 if left smaller, >0 if right smaller
-
getLegacyKeyComparatorName
Deprecated.The HFileV2 file format's trailer contains this class name. We reinterpret this and instantiate the appropriate comparator. TODO: With V3 consider removing this.- Overrides:
getLegacyKeyComparatorName
in classKeyValue.KVComparator
- Returns:
- legacy class name for FileFileTrailer#comparatorClassName
-
clone
Deprecated.- Overrides:
clone
in classKeyValue.KVComparator
- Throws:
CloneNotSupportedException
-
compareRowKey
Deprecated.Override the row key comparison to parse and compare the meta row key parts.- Overrides:
compareRowKey
in classKeyValue.KVComparator
- Parameters:
l
- left cell to compare row keyr
- right cell to compare row key- Returns:
- 0 if equal, <0 if left smaller, >0 if right smaller
-
MetaCellComparator.META_COMPARATOR
to be used. Deprecated for hbase 2.0, remove for hbase 3.0.