@InterfaceAudience.Private public class MutableSegment extends Segment
| Modifier and Type | Field and Description | 
|---|---|
| static long | DEEP_OVERHEAD | 
| private AtomicBoolean | flushed | 
FIXED_OVERHEAD, memStoreSizing, minSequenceId, tagsPresent, timeRangeTrackerDUD| Modifier | Constructor and Description | 
|---|---|
| protected  | MutableSegment(CellSet cellSet,
              CellComparator comparator,
              MemStoreLAB memStoreLAB,
              MemStoreSizing memstoreSizing) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | 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 segment | 
| protected long | indexEntrySize() | 
| boolean | setInMemoryFlushed() | 
| void | upsert(Cell cell,
      long readpoint,
      MemStoreSizing memStoreSizing,
      boolean sizeAddedPreOperation) | 
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, waitForUpdatesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecMemStoreSize, decMemStoreSize, incMemStoreSizeprivate final AtomicBoolean flushed
public static final long DEEP_OVERHEAD
protected MutableSegment(CellSet cellSet, CellComparator comparator, MemStoreLAB memStoreLAB, MemStoreSizing memstoreSizing)
public void add(Cell cell, boolean mslabUsed, MemStoreSizing memStoreSizing, boolean sizeAddedPreOperation)
cell - the cell to addmslabUsed - whether using MSLABpublic void upsert(Cell cell, long readpoint, MemStoreSizing memStoreSizing, boolean sizeAddedPreOperation)
public boolean setInMemoryFlushed()
protected long indexEntrySize()
indexEntrySize in class SegmentCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.