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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected KeyValue.MetaComparatorclone()Deprecated.intDeprecated.Compare key portion of aKeyValuefor keys inhbase:metatable.intcompareOnlyKeyPortion(Cell left, Cell right) Deprecated.protected intcompareRowKey(Cell l, Cell r) Deprecated.Override the row key comparison to parse and compare the meta row key parts.intcompareRows(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, matchingRowsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 aKeyValuefor keys inhbase:metatable.- Specified by:
 comparein interfaceComparator<Cell>- Overrides:
 comparein classKeyValue.KVComparator
 - 
compareOnlyKeyPortion
Deprecated.- Overrides:
 compareOnlyKeyPortionin classKeyValue.KVComparator
 - 
compareRows
public int compareRows(byte[] left, int loffset, int llength, byte[] right, int roffset, int rlength) Deprecated.Description copied from class:KeyValue.KVComparatorGet the b[],o,l for left and right rowkey portions and compare.- Overrides:
 compareRowsin 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:
 getShortMidpointKeyin 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:
 getLegacyKeyComparatorNamein classKeyValue.KVComparator- Returns:
 - legacy class name for FileFileTrailer#comparatorClassName
 
 - 
clone
Deprecated.- Overrides:
 clonein classKeyValue.KVComparator- Throws:
 CloneNotSupportedException
 - 
compareRowKey
Deprecated.Override the row key comparison to parse and compare the meta row key parts.- Overrides:
 compareRowKeyin 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_COMPARATORto be used. Deprecated for hbase 2.0, remove for hbase 3.0.