Uses of Interface
org.apache.hadoop.hbase.CellComparator
Package
Description
Provides implementations of
HFile
and HFile
BlockCache
.-
Uses of CellComparator in org.apache.hadoop.hbase
Modifier and TypeClassDescriptionclass
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
ACellComparatorImpl
forhbase:meta
catalog tableKeyValue
s.Modifier and TypeMethodDescriptionstatic CellComparator
CellComparatorImpl.getCellComparator
(byte[] tableName) Utility method that makes a guess at comparator to use based off passed tableName.static CellComparator
CellComparatorImpl.getCellComparator
(org.apache.hadoop.hbase.TableName tableName) Utility method that makes a guess at comparator to use based off passed tableName.static CellComparator
InnerStoreCellComparator.getInnerStoreCellComparator
(byte[] tableName) Utility method that makes a guess at comparator to use based off passed tableName.static CellComparator
InnerStoreCellComparator.getInnerStoreCellComparator
(org.apache.hadoop.hbase.TableName tableName) Utility method that makes a guess at comparator to use based off passed tableName.static CellComparator
CellComparator.getInstance()
A comparator for ordering cells in user-space tables.Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionint
DataBlockEncoder.EncodedSeeker.compareKey
(CellComparator comparator, org.apache.hadoop.hbase.Cell key) Compare the given key against the current keyint
RowIndexSeekerV1.compareKey
(CellComparator comparator, org.apache.hadoop.hbase.Cell key) -
Uses of CellComparator in org.apache.hadoop.hbase.io.hfile
Modifier and TypeFieldDescriptionprotected CellComparator
CompoundBloomFilterBase.comparator
Comparator used to compare Bloom filter keysModifier and TypeMethodDescriptionHFileContext.getCellComparator()
HFile.Reader.getComparator()
HFileReaderImpl.getComparator()
Returns comparatorModifier and TypeMethodDescriptionint
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 betweenleft
andright
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) Modifier and TypeMethodDescriptionvoid
FixedFileTrailer.setComparatorClass
(Class<? extends CellComparator> klass) ModifierConstructorDescriptionCompoundBloomFilterWriter
(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 TypeFieldDescriptionprotected final CellComparator
StripeMultiFileWriter.comparator
protected final CellComparator
StripeStoreFlusher.StripeFlushRequest.comparator
protected CellComparator
KeyValueHeap.KVScannerComparator.kvComparator
Modifier and TypeMethodDescriptionHRegion.getCellComparator()
Region.getCellComparator()
The comparator to be used with the regionprotected CellComparator
AbstractMemStore.getComparator()
HStore.getComparator()
HStoreFile.getComparator()
KeyValueHeap.KVScannerComparator.getComparator()
ScanInfo.getComparator()
protected CellComparator
Segment.getComparator()
Returns the Cell comparator used by this segmentStore.getComparator()
StoreContext.getComparator()
StoreFile.getComparator()
Get the comparator for comparing two cells.StoreFileReader.getComparator()
Modifier and TypeMethodDescriptionprotected 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 orderstatic 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) ModifierConstructorDescriptionprotected
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 CompositeImmutableSegmentprotected
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 classesKeyValueHeap
(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, CellComparator comparator) Constructor.KVScannerComparator
(CellComparator kvComparator) ConstructorMemStoreCompactorSegmentsIterator
(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 TypeFieldDescriptionprotected final CellComparator
ScanDeleteTracker.comparator
protected final CellComparator
ScanQueryMatcher.rowComparator
Row comparator for the region this query is forModifier and TypeMethodDescriptionDeleteTracker.getCellComparator()
Return the comparator passed to this delete trackerNewVersionBehaviorTracker.getCellComparator()
ScanDeleteTracker.getCellComparator()
ModifierConstructorDescriptionNewVersionBehaviorTracker
(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 TypeMethodDescriptionstatic int
Bytes.binarySearch
(org.apache.hadoop.hbase.Cell[] arr, org.apache.hadoop.hbase.Cell key, CellComparator comparator) Binary search for keys in indexes.ModifierConstructorDescriptionBloomContext
(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)