Uses of Interface
org.apache.hadoop.hbase.CellComparator

Packages that use CellComparator
  • Uses of CellComparator in org.apache.hadoop.hbase

    Classes in org.apache.hadoop.hbase that implement CellComparator
    Modifier and Type
    Class
    Description
    class 
    org.apache.hadoop.hbase.CellComparatorImpl
    Compare two HBase cells.
    class 
    org.apache.hadoop.hbase.InnerStoreCellComparator
    Compare two HBase cells inner store, skip compare family for better performance.
    class 
    org.apache.hadoop.hbase.MetaCellComparator
    A CellComparatorImpl for hbase:meta catalog table KeyValues.
    Modifier and Type
    Method
    Description
    CellComparatorImpl.getCellComparator(byte[] tableName)
    Utility method that makes a guess at comparator to use based off passed tableName.
    CellComparatorImpl.getCellComparator(org.apache.hadoop.hbase.TableName tableName)
    Utility method that makes a guess at comparator to use based off passed tableName.
    InnerStoreCellComparator.getInnerStoreCellComparator(byte[] tableName)
    Utility method that makes a guess at comparator to use based off passed tableName.
    InnerStoreCellComparator.getInnerStoreCellComparator(org.apache.hadoop.hbase.TableName tableName)
    Utility method that makes a guess at comparator to use based off passed tableName.
    CellComparator.getInstance()
    A comparator for ordering cells in user-space tables.
    Methods in org.apache.hadoop.hbase with parameters of type CellComparator
    Modifier and Type
    Method
    Description
    static final int
    CellUtil.compare(CellComparator comparator, org.apache.hadoop.hbase.Cell left, byte[] key, int offset, int length)
    Deprecated.
    As of HBase-2.0.
    static final int
    PrivateCellUtil.compare(CellComparator comparator, org.apache.hadoop.hbase.Cell left, byte[] key, int offset, int length)
    Used when a cell needs to be compared with a key byte[] such as cases of finding the index from the index block, bloom keys from the bloom blocks This byte[] is expected to be serialized in the KeyValue serialization format If the KeyValue (Cell's) serialization format changes this method cannot be used.
    static final int
    PrivateCellUtil.compareKeyBasedOnColHint(CellComparator comparator, org.apache.hadoop.hbase.Cell nextIndexedCell, org.apache.hadoop.hbase.Cell currentCell, int foff, int flen, byte[] colHint, int coff, int clen, long ts, byte type)
    Used to compare two cells based on the column hint provided.
    static final int
    PrivateCellUtil.compareKeyIgnoresMvcc(CellComparator comparator, org.apache.hadoop.hbase.Cell left, org.apache.hadoop.hbase.Cell right)
    Compares only the key portion of a cell.
  • Uses of CellComparator in org.apache.hadoop.hbase.io.encoding

    Methods in org.apache.hadoop.hbase.io.encoding with parameters of type CellComparator
    Modifier and Type
    Method
    Description
    int
    DataBlockEncoder.EncodedSeeker.compareKey(CellComparator comparator, org.apache.hadoop.hbase.Cell key)
    Compare the given key against the current key
    int
    RowIndexSeekerV1.compareKey(CellComparator comparator, org.apache.hadoop.hbase.Cell key)
     
  • Uses of CellComparator in org.apache.hadoop.hbase.io.hfile

    Modifier and Type
    Field
    Description
    protected CellComparator
    CompoundBloomFilterBase.comparator
    Comparator used to compare Bloom filter keys
    Modifier and Type
    Method
    Description
    HFileContext.getCellComparator()
     
    HFile.Reader.getComparator()
     
    HFileReaderImpl.getComparator()
    Returns comparator
    Methods in org.apache.hadoop.hbase.io.hfile with parameters of type CellComparator
    Modifier and Type
    Method
    Description
    int
    HFileReaderImpl.EncodedScanner.compareKey(CellComparator comparator, org.apache.hadoop.hbase.Cell key)
     
    int
    HFileReaderImpl.HFileScannerImpl.compareKey(CellComparator comparator, org.apache.hadoop.hbase.Cell key)
     
    static org.apache.hadoop.hbase.Cell
    HFileWriterImpl.getMidpoint(CellComparator comparator, org.apache.hadoop.hbase.Cell left, org.apache.hadoop.hbase.Cell right)
    Try to return a Cell that falls between left and right but that is shorter; i.e.
    void
    HFileIndexBlockEncoder.EncodedSeeker.initRootIndex(org.apache.hadoop.hbase.io.hfile.HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel)
     
    void
    NoOpIndexBlockEncoder.NoOpEncodedSeeker.initRootIndex(org.apache.hadoop.hbase.io.hfile.HFileBlock blk, int numEntries, CellComparator comparator, int treeLevel)
     
    org.apache.hadoop.hbase.io.hfile.HFileContextBuilder
    HFileContextBuilder.withCellComparator(CellComparator cellComparator)
     
    Method parameters in org.apache.hadoop.hbase.io.hfile with type arguments of type CellComparator
    Modifier and Type
    Method
    Description
    void
    FixedFileTrailer.setComparatorClass(Class<? extends CellComparator> klass)
     
    Constructors in org.apache.hadoop.hbase.io.hfile with parameters of type CellComparator
    Modifier
    Constructor
    Description
     
    CompoundBloomFilterWriter(int chunkByteSizeHint, float errorRate, int hashType, int maxFold, boolean cacheOnWrite, CellComparator comparator, org.apache.hadoop.hbase.regionserver.BloomType bloomType)
    each chunk's size in bytes.
  • Uses of CellComparator in org.apache.hadoop.hbase.regionserver

    Modifier and Type
    Field
    Description
    protected final CellComparator
    StripeMultiFileWriter.comparator
     
    protected final CellComparator
    StripeStoreFlusher.StripeFlushRequest.comparator
     
    protected CellComparator
    KeyValueHeap.KVScannerComparator.kvComparator
     
    Modifier and Type
    Method
    Description
    HRegion.getCellComparator()
     
    Region.getCellComparator()
    The comparator to be used with the region
    protected CellComparator
    AbstractMemStore.getComparator()
     
    HStore.getComparator()
     
    HStoreFile.getComparator()
     
    KeyValueHeap.KVScannerComparator.getComparator()
     
    ScanInfo.getComparator()
     
    protected CellComparator
    Segment.getComparator()
    Returns the Cell comparator used by this segment
    Store.getComparator()
     
    StoreContext.getComparator()
     
    StoreFile.getComparator()
    Get the comparator for comparing two cells.
    StoreFileReader.getComparator()
     
    Methods in org.apache.hadoop.hbase.regionserver with parameters of type CellComparator
    Modifier and Type
    Method
    Description
    protected void
    ReversedStoreScanner.checkScanOrder(org.apache.hadoop.hbase.Cell prevKV, org.apache.hadoop.hbase.Cell kv, CellComparator comparator)
     
    protected void
    StoreScanner.checkScanOrder(org.apache.hadoop.hbase.Cell prevKV, org.apache.hadoop.hbase.Cell kv, CellComparator comparator)
    Check whether scan as expected order
    static org.apache.hadoop.hbase.regionserver.StoreEngine<?,?,?,?>
    StoreEngine.create(org.apache.hadoop.hbase.regionserver.HStore store, org.apache.hadoop.conf.Configuration conf, CellComparator cellComparator)
    Create the StoreEngine configured for the given Store.
    protected void
    DateTieredStoreEngine.createComponents(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.HStore store, CellComparator kvComparator)
     
    protected void
    DefaultStoreEngine.createComponents(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.HStore store, CellComparator kvComparator)
     
    protected abstract void
    StoreEngine.createComponents(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.HStore store, CellComparator cellComparator)
    Create the StoreEngine's components.
    protected void
    StripeStoreEngine.createComponents(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.HStore store, CellComparator comparator)
     
    protected final void
    StoreEngine.createComponentsOnce(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.HStore store, CellComparator cellComparator)
     
    org.apache.hadoop.hbase.regionserver.CompositeImmutableSegment
    SegmentFactory.createCompositeImmutableSegment(CellComparator comparator, List<org.apache.hadoop.hbase.regionserver.ImmutableSegment> segments)
     
    org.apache.hadoop.hbase.regionserver.ImmutableSegment
    SegmentFactory.createImmutableSegment(CellComparator comparator)
    create empty immutable segment for initializations This ImmutableSegment is used as a place holder for snapshot in Memstore.
    org.apache.hadoop.hbase.regionserver.ImmutableSegment
    SegmentFactory.createImmutableSegmentByCompaction(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreSegmentsIterator iterator, int numOfCells, org.apache.hadoop.hbase.regionserver.CompactingMemStore.IndexType idxType, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action)
     
    org.apache.hadoop.hbase.regionserver.ImmutableSegment
    SegmentFactory.createImmutableSegmentByMerge(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreSegmentsIterator iterator, int numOfCells, List<org.apache.hadoop.hbase.regionserver.ImmutableSegment> segments, org.apache.hadoop.hbase.regionserver.CompactingMemStore.IndexType idxType, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action)
     
    org.apache.hadoop.hbase.regionserver.MutableSegment
    SegmentFactory.createMutableSegment(org.apache.hadoop.conf.Configuration conf, CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreSizing memstoreSizing)
     
    protected org.apache.hadoop.hbase.regionserver.StoreEngine<?,?,?,?>
    HMobStore.createStoreEngine(org.apache.hadoop.hbase.regionserver.HStore store, org.apache.hadoop.conf.Configuration conf, CellComparator cellComparator)
    Creates the mob store engine.
    protected org.apache.hadoop.hbase.regionserver.StoreEngine<?,?,?,?>
    HStore.createStoreEngine(org.apache.hadoop.hbase.regionserver.HStore store, org.apache.hadoop.conf.Configuration conf, CellComparator kvComparator)
    Creates the store engine configured for the given Store.
    protected org.apache.hadoop.hbase.regionserver.KeyValueHeap
    ReversedStoreScanner.newKVHeap(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, CellComparator comparator)
     
    protected org.apache.hadoop.hbase.regionserver.KeyValueHeap
    StoreScanner.newKVHeap(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, CellComparator comparator)
     
    protected void
    StoreScanner.resetKVHeap(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, CellComparator comparator)
     
    org.apache.hadoop.hbase.regionserver.StoreContext.Builder
    StoreContext.Builder.withCellComparator(CellComparator comparator)
     
    Constructors in org.apache.hadoop.hbase.regionserver with parameters of type CellComparator
    Modifier
    Constructor
    Description
    protected
    AbstractMemStore(org.apache.hadoop.conf.Configuration conf, CellComparator c, org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServices)
     
     
    BoundaryMultiWriter(CellComparator comparator, List<byte[]> targetBoundaries, byte[] majorRangeFrom, byte[] majorRangeTo)
     
     
    BoundaryStripeFlushRequest(CellComparator comparator, List<byte[]> targetBoundaries)
     
    protected
    CellArrayImmutableSegment(CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreSegmentsIterator iterator, org.apache.hadoop.hbase.regionserver.MemStoreLAB memStoreLAB, int numOfCells, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action)
    ------------------------------------------------------------------------ C-tor to be used when new CellArrayImmutableSegment is a result of compaction of a list of older ImmutableSegments.
    protected
    CellChunkImmutableSegment(CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreSegmentsIterator iterator, org.apache.hadoop.hbase.regionserver.MemStoreLAB memStoreLAB, int numOfCells, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action)
    ------------------------------------------------------------------------ C-tor to be used when new CellChunkImmutableSegment is built as a result of compaction/merge of a list of older ImmutableSegments.
     
    CellSet(CellComparator c)
     
     
    CompactingMemStore(org.apache.hadoop.conf.Configuration conf, CellComparator c, org.apache.hadoop.hbase.regionserver.HStore store, org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServices, org.apache.hadoop.hbase.MemoryCompactionPolicy compactionPolicy)
     
     
    CompositeImmutableSegment(CellComparator comparator, List<org.apache.hadoop.hbase.regionserver.ImmutableSegment> segments)
     
     
    DefaultMemStore(org.apache.hadoop.conf.Configuration conf, CellComparator c)
    Constructor.
     
    DefaultMemStore(org.apache.hadoop.conf.Configuration conf, CellComparator c, org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServices)
    Constructor.
    protected
    ImmutableSegment(CellComparator comparator)
    ------------------------------------------------------------------------ Empty C-tor to be used only for CompositeImmutableSegment
    protected
    ImmutableSegment(CellComparator comparator, List<org.apache.hadoop.hbase.regionserver.ImmutableSegment> segments)
     
    protected
    ImmutableSegment(org.apache.hadoop.hbase.regionserver.CellSet cs, CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreLAB memStoreLAB)
    ------------------------------------------------------------------------ C-tor to be used to build the derived classes
     
    KeyValueHeap(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, CellComparator comparator)
    Constructor.
     
    KVScannerComparator(CellComparator kvComparator)
    Constructor
     
    MemStoreCompactorSegmentsIterator(List<org.apache.hadoop.hbase.regionserver.ImmutableSegment> segments, CellComparator comparator, int compactionKVMax, org.apache.hadoop.hbase.regionserver.HStore store)
     
     
    MemStoreMergerSegmentsIterator(List<org.apache.hadoop.hbase.regionserver.ImmutableSegment> segments, CellComparator comparator, int compactionKVMax)
     
    protected
    MutableSegment(org.apache.hadoop.hbase.regionserver.CellSet cellSet, CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreLAB memStoreLAB, org.apache.hadoop.hbase.regionserver.MemStoreSizing memstoreSizing)
     
     
    ReversedKeyValueHeap(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, CellComparator comparator)
     
     
    ScanInfo(org.apache.hadoop.conf.Configuration conf, byte[] family, int minVersions, int maxVersions, long ttl, org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells, long blockSize, long timeToPurgeDeletes, CellComparator comparator, boolean newVersionBehavior)
     
     
    ScanInfo(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor family, long ttl, long timeToPurgeDeletes, CellComparator comparator)
     
    protected
    Segment(CellComparator comparator, List<org.apache.hadoop.hbase.regionserver.ImmutableSegment> segments, org.apache.hadoop.hbase.regionserver.TimeRangeTracker trt)
     
    protected
    Segment(CellComparator comparator, org.apache.hadoop.hbase.regionserver.TimeRangeTracker trt)
     
    protected
    Segment(org.apache.hadoop.hbase.regionserver.CellSet cellSet, CellComparator comparator, org.apache.hadoop.hbase.regionserver.MemStoreLAB memStoreLAB, org.apache.hadoop.hbase.regionserver.TimeRangeTracker trt)
     
     
    SizeMultiWriter(CellComparator comparator, int targetCount, long targetKvs, byte[] left, byte[] right)
     
     
    SizeStripeFlushRequest(CellComparator comparator, int targetCount, long targetKvs)
     
     
    StripeFlushRequest(CellComparator comparator)
     
     
    StripeMultiFileWriter(CellComparator comparator)
     
     
    StripeStoreFileManager(CellComparator kvComparator, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.StripeStoreConfig config)
     
  • Uses of CellComparator in org.apache.hadoop.hbase.regionserver.querymatcher

    Modifier and Type
    Field
    Description
    protected final CellComparator
    ScanDeleteTracker.comparator
     
    protected final CellComparator
    ScanQueryMatcher.rowComparator
    Row comparator for the region this query is for
    Modifier and Type
    Method
    Description
    DeleteTracker.getCellComparator()
    Return the comparator passed to this delete tracker
    NewVersionBehaviorTracker.getCellComparator()
     
    ScanDeleteTracker.getCellComparator()
     
    Modifier
    Constructor
    Description
     
    NewVersionBehaviorTracker(NavigableSet<byte[]> columns, CellComparator comparartor, int minVersion, int maxVersion, int resultMaxVersions, long oldestUnexpiredTS)
    Note maxVersion and minVersion must set according to cf's conf, not user's scan parameter.
     
    ScanDeleteTracker(CellComparator comparator)
     
     
    ScanWildcardColumnTracker(int minVersion, int maxVersion, long oldestUnexpiredTS, CellComparator comparator)
    Return maxVersions of every row.
  • Uses of CellComparator in org.apache.hadoop.hbase.util

    Modifier and Type
    Field
    Description
    protected CellComparator
    BloomContext.comparator
     
    Methods in org.apache.hadoop.hbase.util with parameters of type CellComparator
    Modifier and Type
    Method
    Description
    static int
    Bytes.binarySearch(org.apache.hadoop.hbase.Cell[] arr, org.apache.hadoop.hbase.Cell key, CellComparator comparator)
    Binary search for keys in indexes.
    Constructors in org.apache.hadoop.hbase.util with parameters of type CellComparator
    Modifier
    Constructor
    Description
     
    BloomContext(org.apache.hadoop.hbase.util.BloomFilterWriter bloomFilterWriter, CellComparator comparator)
     
     
    CollectionBackedScanner(List<org.apache.hadoop.hbase.Cell> list, CellComparator comparator)
     
     
    CollectionBackedScanner(SortedSet<org.apache.hadoop.hbase.Cell> set, CellComparator comparator)
     
     
    CollectionBackedScanner(CellComparator comparator, org.apache.hadoop.hbase.Cell... array)
     
     
    RowBloomContext(org.apache.hadoop.hbase.util.BloomFilterWriter bloomFilterWriter, CellComparator comparator)
     
     
    RowColBloomContext(org.apache.hadoop.hbase.util.BloomFilterWriter generalBloomFilterWriter, CellComparator comparator)
     
     
    RowPrefixFixedLengthBloomContext(org.apache.hadoop.hbase.util.BloomFilterWriter bloomFilterWriter, CellComparator comparator, int prefixLength)