Class MutableSegment
java.lang.Object
org.apache.hadoop.hbase.regionserver.Segment
org.apache.hadoop.hbase.regionserver.MutableSegment
- All Implemented Interfaces:
MemStoreSizing
A mutable segment in memstore, specifically the active segment.
-
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
ConstructorsModifierConstructorDescriptionprotectedMutableSegment(CellSet<ExtendedCell> cellSet, CellComparator comparator, MemStoreLAB memStoreLAB, MemStoreSizing memstoreSizing) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ExtendedCell cell, boolean mslabUsed, MemStoreSizing memStoreSizing, boolean sizeAddedPreOperation) Adds the given cell into the segment(package private) ExtendedCellfirst()Returns the first cell in the segmentprotected longbooleanvoidupsert(ExtendedCell cell, long readpoint, MemStoreSizing memStoreSizing, boolean sizeAddedPreOperation) 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, internalAdd, isEmpty, isTagsPresent, iterator, last, maybeCloneWithAllocator, offHeapSizeChange, setCellSet, sharedLock, sharedUnlock, shouldSeek, tailSet, toString, 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
-
flushed
-
DEEP_OVERHEAD
-
-
Constructor Details
-
MutableSegment
protected MutableSegment(CellSet<ExtendedCell> cellSet, CellComparator comparator, MemStoreLAB memStoreLAB, MemStoreSizing memstoreSizing)
-
-
Method Details
-
add
public void add(ExtendedCell cell, boolean mslabUsed, MemStoreSizing memStoreSizing, boolean sizeAddedPreOperation) Adds the given cell into the segment- Parameters:
cell- the cell to addmslabUsed- whether using MSLAB
-
upsert
public void upsert(ExtendedCell cell, long readpoint, MemStoreSizing memStoreSizing, boolean sizeAddedPreOperation) -
setInMemoryFlushed
-
first
Returns the first cell in the segment- Returns:
- the first cell in the segment
-
indexEntrySize
- Specified by:
indexEntrySizein classSegment
-