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
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
MutableSegment
(CellSet cellSet, CellComparator comparator, MemStoreLAB memStoreLAB, MemStoreSizing memstoreSizing) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Cell cell, boolean mslabUsed, MemStoreSizing memStoreSizing, boolean sizeAddedPreOperation) Adds the given cell into the segment(package private) Cell
first()
Returns the first cell in the segmentprotected long
boolean
void
upsert
(Cell 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, 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
-
flushed
-
DEEP_OVERHEAD
-
-
Constructor Details
-
MutableSegment
protected MutableSegment(CellSet cellSet, CellComparator comparator, MemStoreLAB memStoreLAB, MemStoreSizing memstoreSizing)
-
-
Method Details
-
add
public void add(Cell 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(Cell 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:
indexEntrySize
in classSegment
-