Class ImmutableSegment
java.lang.Object
org.apache.hadoop.hbase.regionserver.Segment
org.apache.hadoop.hbase.regionserver.ImmutableSegment
- All Implemented Interfaces:
MemStoreSizing
- Direct Known Subclasses:
CellArrayImmutableSegment
,CellChunkImmutableSegment
,CompositeImmutableSegment
,CSLMImmutableSegment
ImmutableSegment is an abstract class that extends the API supported by a
Segment
, and is
not needed for a MutableSegment
.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.Segment
FIXED_OVERHEAD, memStoreSizing, minSequenceId, tagsPresent, timeRangeTracker
Fields inherited from interface org.apache.hadoop.hbase.regionserver.MemStoreSizing
DUD
-
Constructor Summary
ModifierConstructorDescriptionprotected
ImmutableSegment
(CellComparator comparator) ------------------------------------------------------------------------ Empty C-tor to be used only for CompositeImmutableSegmentprotected
ImmutableSegment
(CellComparator comparator, List<ImmutableSegment> segments) protected
ImmutableSegment
(CellSet cs, CellComparator comparator, MemStoreLAB memStoreLAB) ------------------------------------------------------------------------ C-tor to be used to build the derived classesprotected
ImmutableSegment
(Segment segment) ------------------------------------------------------------------------ Copy C-tor to be used when new CSLMImmutableSegment (derived) is being built from a Mutable one. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
int
int
(package private) List<KeyValueScanner>
We create a newSnapshotSegmentScanner
to increase the reference count ofMemStoreLABImpl
used by this segment.toString()
Methods inherited from class org.apache.hadoop.hbase.regionserver.Segment
close, compare, compareAndSetDataSize, compareRows, decScannerCount, dump, getCellLength, getCellsCount, getCellSet, getComparator, getDataSize, getHeapSize, getMemStoreLAB, getMemStoreSize, getMinSequenceId, getOffHeapSize, getScanner, getScanners, getTimeRangeTracker, headSet, heapSizeChange, incMemStoreSize, incScannerCount, indexEntryOffHeapSize, indexEntryOnHeapSize, indexEntrySize, internalAdd, isEmpty, isTagsPresent, iterator, last, maybeCloneWithAllocator, offHeapSizeChange, setCellSet, sharedLock, sharedUnlock, shouldSeek, tailSet, updateMetaInfo, updateMetaInfo, waitForUpdates
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.regionserver.MemStoreSizing
decMemStoreSize, decMemStoreSize, incMemStoreSize
-
Field Details
-
DEEP_OVERHEAD
-
-
Constructor Details
-
ImmutableSegment
------------------------------------------------------------------------ Empty C-tor to be used only for CompositeImmutableSegment -
ImmutableSegment
-
ImmutableSegment
------------------------------------------------------------------------ C-tor to be used to build the derived classes -
ImmutableSegment
------------------------------------------------------------------------ Copy C-tor to be used when new CSLMImmutableSegment (derived) is being built from a Mutable one. This C-tor should be used when active MutableSegment is pushed into the compaction pipeline and becomes an ImmutableSegment.
-
-
Method Details
-
canBeFlattened
-
getNumUniqueKeys
-
getNumOfSegments
-
getAllSegments
-
toString
-
getSnapshotScanners
We create a newSnapshotSegmentScanner
to increase the reference count ofMemStoreLABImpl
used by this segment.
-