@InterfaceAudience.Private public abstract class ImmutableSegment extends Segment
Segment
, and is
not needed for a MutableSegment
.Modifier and Type | Field and Description |
---|---|
static long |
DEEP_OVERHEAD |
FIXED_OVERHEAD, memStoreSizing, minSequenceId, tagsPresent, timeRangeTracker
DUD
Modifier | Constructor and Description |
---|---|
protected |
ImmutableSegment(CellComparator comparator)
------------------------------------------------------------------------ Empty C-tor to be used
only for CompositeImmutableSegment
|
protected |
ImmutableSegment(CellComparator comparator,
List<ImmutableSegment> segments) |
protected |
ImmutableSegment(CellSet cs,
CellComparator comparator,
MemStoreLAB memStoreLAB)
------------------------------------------------------------------------ C-tor to be used to
build the derived classes
|
protected |
ImmutableSegment(Segment segment)
------------------------------------------------------------------------ Copy C-tor to be used
when new CSLMImmutableSegment (derived) is being built from a Mutable one.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
canBeFlattened() |
List<Segment> |
getAllSegments() |
int |
getNumOfSegments() |
int |
getNumUniqueKeys() |
(package private) List<KeyValueScanner> |
getSnapshotScanners()
We create a new
SnapshotSegmentScanner to increase the reference count of
MemStoreLABImpl used by this segment. |
String |
toString() |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decMemStoreSize, decMemStoreSize, incMemStoreSize
public static final long DEEP_OVERHEAD
protected ImmutableSegment(CellComparator comparator)
protected ImmutableSegment(CellComparator comparator, List<ImmutableSegment> segments)
protected ImmutableSegment(CellSet cs, CellComparator comparator, MemStoreLAB memStoreLAB)
protected ImmutableSegment(Segment segment)
protected abstract boolean canBeFlattened()
public int getNumUniqueKeys()
public int getNumOfSegments()
public List<Segment> getAllSegments()
List<KeyValueScanner> getSnapshotScanners()
SnapshotSegmentScanner
to increase the reference count of
MemStoreLABImpl
used by this segment.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.