org.apache.hadoop.hbase
Class KeyValue.MetaComparator

java.lang.Object
  extended by org.apache.hadoop.hbase.KeyValue.KVComparator
      extended by org.apache.hadoop.hbase.KeyValue.MetaComparator
All Implemented Interfaces:
Comparator<Cell>
Enclosing class:
KeyValue

public static class KeyValue.MetaComparator
extends KeyValue.KVComparator

A KeyValue.KVComparator for .META. catalog table KeyValues.


Constructor Summary
KeyValue.MetaComparator()
           
 
Method Summary
protected  Object clone()
           
protected  int compareRowKey(Cell l, Cell r)
          Override the row key comparision to parse and compare the meta row key parts.
 KeyValue.KeyComparator getRawComparator()
           
 
Methods inherited from class org.apache.hadoop.hbase.KeyValue.KVComparator
compare, compareColumns, compareRows, compareRows, compareRows, compareRows, compareTimestamps, matchingRowColumn, matchingRows, matchingRows, matchingRows, matchingRows, matchingRowsGreaterTimestamp
 
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
 

Constructor Detail

KeyValue.MetaComparator

public KeyValue.MetaComparator()
Method Detail

getRawComparator

public KeyValue.KeyComparator getRawComparator()
Overrides:
getRawComparator in class KeyValue.KVComparator
Returns:
RawComparator that can compare the Key portion of a KeyValue. Used in hfile where indices are the Key portion of a KeyValue.

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class KeyValue.KVComparator
Throws:
CloneNotSupportedException

compareRowKey

protected int compareRowKey(Cell l,
                            Cell r)
Override the row key comparision to parse and compare the meta row key parts.

Overrides:
compareRowKey in class KeyValue.KVComparator


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.