@InterfaceAudience.Private public class ImmutableSegment extends Segment
Segment,
and is not needed for a MutableSegment.| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSegment.Type
Types of ImmutableSegment
|
| Modifier and Type | Field and Description |
|---|---|
static long |
DEEP_OVERHEAD_CAM |
static long |
DEEP_OVERHEAD_CSLM |
dataSize, FIXED_OVERHEAD, heapSize, minSequenceId, tagsPresent, timeRangeTracker| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableSegment(CellComparator comparator)
------------------------------------------------------------------------
Empty C-tor to be used only for CompositeImmutableSegment
|
protected |
ImmutableSegment(CellComparator comparator,
MemStoreSegmentsIterator iterator,
MemStoreLAB memStoreLAB)
------------------------------------------------------------------------
C-tor to be used when new SKIP-LIST BASED ImmutableSegment is a result of compaction of a
list of older ImmutableSegments.
|
protected |
ImmutableSegment(CellComparator comparator,
MemStoreSegmentsIterator iterator,
MemStoreLAB memStoreLAB,
int numOfCells,
ImmutableSegment.Type type,
boolean merge)
------------------------------------------------------------------------
C-tor to be used when new CELL_ARRAY BASED ImmutableSegment is a result of compaction of a
list of older ImmutableSegments.
|
protected |
ImmutableSegment(Segment segment)
------------------------------------------------------------------------
Copy C-tor to be used when new ImmutableSegment is being built from a Mutable one.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
flatten(MemstoreSize memstoreSize)
------------------------------------------------------------------------
Change the CellSet of this ImmutableSegment from one based on ConcurrentSkipListMap to one
based on CellArrayMap.
|
List<Segment> |
getAllSegments() |
long |
getMinTimestamp() |
int |
getNumOfSegments() |
protected long |
heapSizeChange(Cell cell,
boolean succ) |
boolean |
shouldSeek(TimeRange tr,
long oldestUnexpiredTS) |
close, compare, compareRows, decScannerCount, getCellsCount, getCellSet, getComparator, getFirstAfter, getMinSequenceId, getScanner, getScanner, getScanners, getTimeRangeTracker, headSet, heapSize, incScannerCount, incSize, internalAdd, isEmpty, isTagsPresent, iterator, keySize, last, maybeCloneWithAllocator, setCellSet, tailSet, toString, updateMetaInfopublic static final long DEEP_OVERHEAD_CSLM
public static final long DEEP_OVERHEAD_CAM
protected ImmutableSegment(CellComparator comparator)
protected ImmutableSegment(Segment segment)
protected ImmutableSegment(CellComparator comparator, MemStoreSegmentsIterator iterator, MemStoreLAB memStoreLAB, int numOfCells, ImmutableSegment.Type type, boolean merge)
protected ImmutableSegment(CellComparator comparator, MemStoreSegmentsIterator iterator, MemStoreLAB memStoreLAB)
public boolean shouldSeek(TimeRange tr, long oldestUnexpiredTS)
shouldSeek in class Segmentpublic long getMinTimestamp()
getMinTimestamp in class Segmentpublic int getNumOfSegments()
public boolean flatten(MemstoreSize memstoreSize)
protected long heapSizeChange(Cell cell, boolean succ)
heapSizeChange in class SegmentCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.