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
FieldsFields inherited from class org.apache.hadoop.hbase.regionserver.Segment
FIXED_OVERHEAD, memStoreSizing, minSequenceId, tagsPresent, timeRangeTrackerFields inherited from interface org.apache.hadoop.hbase.regionserver.MemStoreSizing
DUD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImmutableSegment(CellComparator comparator) ------------------------------------------------------------------------ Empty C-tor to be used only for CompositeImmutableSegmentprotectedImmutableSegment(CellComparator comparator, List<ImmutableSegment> segments) protectedImmutableSegment(CellSet cs, CellComparator comparator, MemStoreLAB memStoreLAB) ------------------------------------------------------------------------ C-tor to be used to build the derived classesprotectedImmutableSegment(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 booleanintint(package private) List<KeyValueScanner>We create a newSnapshotSegmentScannerto increase the reference count ofMemStoreLABImplused 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, waitForUpdatesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 newSnapshotSegmentScannerto increase the reference count ofMemStoreLABImplused by this segment.
-