Package org.apache.hadoop.hbase
Class InnerStoreCellComparator
java.lang.Object
org.apache.hadoop.hbase.CellComparatorImpl
org.apache.hadoop.hbase.InnerStoreCellComparator
- All Implemented Interfaces:
- Serializable,- Comparator<Cell>,- CellComparator
Compare two HBase cells inner store, skip compare family for better performance. Important!!! we
 should not make fake cell with fake family which length greater than zero inner store, otherwise
 this optimization cannot be used.
- See Also:
- 
Field SummaryFieldsFields inherited from class org.apache.hadoop.hbase.CellComparatorImplCOMPARATOR
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected intcompareFamilies(ByteBufferKeyValue left, int leftFamilyPosition, int leftFamilyLength, ByteBufferKeyValue right, int rightFamilyPosition, int rightFamilyLength) This method will be overridden when we compare cells inner store to bypass family comparing.protected intcompareFamilies(Cell left, int leftFamilyLength, Cell right, int rightFamilyLength) This method will be overridden when we compare cells inner store to bypass family comparing.protected intcompareFamilies(KeyValue left, int leftFamilyPosition, int leftFamilyLength, ByteBufferKeyValue right, int rightFamilyPosition, int rightFamilyLength) This method will be overridden when we compare cells inner store to bypass family comparing.protected intcompareFamilies(KeyValue left, int leftFamilyPosition, int leftFamilyLength, KeyValue right, int rightFamilyPosition, int rightFamilyLength) This method will be overridden when we compare cells inner store to bypass family comparing.static CellComparatorgetInnerStoreCellComparator(byte[] tableName) Utility method that makes a guess at comparator to use based off passed tableName.static CellComparatorgetInnerStoreCellComparator(TableName tableName) Utility method that makes a guess at comparator to use based off passed tableName.Methods inherited from class org.apache.hadoop.hbase.CellComparatorImplcompare, compare, compareColumns, compareFamilies, compareQualifiers, compareQualifiers, compareQualifiers, compareQualifiers, compareQualifiers, compareRows, compareRows, compareRows, compareTimestamps, compareTimestamps, compareWithoutRow, getCellComparator, getCellComparator, getSimpleComparatorMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.CellComparatorcompareRows, compareRowsMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Field Details- 
serialVersionUID- See Also:
 
- 
INNER_STORE_COMPARATOR
 
- 
- 
Constructor Details- 
InnerStoreCellComparatorpublic InnerStoreCellComparator()
 
- 
- 
Method Details- 
compareFamiliesDescription copied from class:CellComparatorImplThis method will be overridden when we compare cells inner store to bypass family comparing.- Overrides:
- compareFamiliesin class- CellComparatorImpl
 
- 
compareFamiliesprotected int compareFamilies(KeyValue left, int leftFamilyPosition, int leftFamilyLength, KeyValue right, int rightFamilyPosition, int rightFamilyLength) Description copied from class:CellComparatorImplThis method will be overridden when we compare cells inner store to bypass family comparing.- Overrides:
- compareFamiliesin class- CellComparatorImpl
 
- 
compareFamiliesprotected int compareFamilies(ByteBufferKeyValue left, int leftFamilyPosition, int leftFamilyLength, ByteBufferKeyValue right, int rightFamilyPosition, int rightFamilyLength) Description copied from class:CellComparatorImplThis method will be overridden when we compare cells inner store to bypass family comparing.- Overrides:
- compareFamiliesin class- CellComparatorImpl
 
- 
compareFamiliesprotected int compareFamilies(KeyValue left, int leftFamilyPosition, int leftFamilyLength, ByteBufferKeyValue right, int rightFamilyPosition, int rightFamilyLength) Description copied from class:CellComparatorImplThis method will be overridden when we compare cells inner store to bypass family comparing.- Overrides:
- compareFamiliesin class- CellComparatorImpl
 
- 
getInnerStoreCellComparatorUtility method that makes a guess at comparator to use based off passed tableName. Use in extreme when no comparator specified.- Returns:
- CellComparator to use going off the tableNamepassed.
 
- 
getInnerStoreCellComparatorUtility method that makes a guess at comparator to use based off passed tableName. Use in extreme when no comparator specified.- Returns:
- CellComparator to use going off the tableNamepassed.
 
 
-