@InterfaceAudience.Private public class CompositeImmutableSegment extends ImmutableSegment
DEEP_OVERHEADFIXED_OVERHEAD, memStoreSizing, minSequenceId, tagsPresent, timeRangeTrackerDUD| 构造器和说明 |
|---|
CompositeImmutableSegment(CellComparator comparator,
List<ImmutableSegment> segments) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
canBeFlattened() |
void |
close()
Closing a segment before it is being discarded
|
int |
compare(Cell left,
Cell right) |
int |
compareRows(Cell left,
Cell right) |
void |
decScannerCount() |
List<Segment> |
getAllSegments() |
int |
getCellsCount() |
protected CellSet |
getCellSet() |
long |
getDataSize() |
long |
getHeapSize() |
long |
getMinSequenceId() |
int |
getNumOfSegments() |
KeyValueScanner |
getScanner(long readPoint)
Creates the scanner for the given read point
|
List<KeyValueScanner> |
getScanners(long readPoint) |
TimeRangeTracker |
getTimeRangeTracker() |
SortedSet<Cell> |
headSet(Cell firstKeyOnRow) |
long |
incMemStoreSize(long delta,
long heapOverhead,
long offHeapOverhead,
int cellsCount)
Updates the heap size counter of the segment by the given delta
|
void |
incScannerCount() |
protected long |
indexEntrySize() |
protected void |
internalAdd(Cell cell,
boolean mslabUsed,
MemStoreSizing memstoreSizing) |
boolean |
isEmpty() |
boolean |
isTagsPresent() |
Iterator<Cell> |
iterator() |
Cell |
last() |
Cell |
maybeCloneWithAllocator(Cell cell,
boolean forceCloneOfBigCell)
If the segment has a memory allocator the cell is being cloned to this space, and returned;
otherwise the given cell is returned
|
protected CompositeImmutableSegment |
setCellSet(CellSet cellSetOld,
CellSet cellSetNew)
Setting the CellSet of the segment - used only for flat immutable segment for setting
immutable CellSet after its creation in immutable segment constructor
|
boolean |
shouldSeek(TimeRange tr,
long oldestUnexpiredTS) |
protected SortedSet<Cell> |
tailSet(Cell firstCell)
Returns a subset of the segment cell set, which starts with the given cell
|
String |
toString() |
protected void |
updateMetaInfo(Cell cellToAdd,
boolean succ,
boolean mslabUsed,
MemStoreSizing memstoreSizing) |
getNumUniqueKeysgetComparator, getMemStoreSize, getOffHeapSize, heapSizeChange, indexEntryOffHeapSize, indexEntryOnHeapSize, offHeapSizeChange, updateMetaInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdecMemStoreSize, decMemStoreSize, incMemStoreSizepublic CompositeImmutableSegment(CellComparator comparator, List<ImmutableSegment> segments)
public List<Segment> getAllSegments()
getAllSegments 在类中 ImmutableSegmentpublic int getNumOfSegments()
getNumOfSegments 在类中 ImmutableSegmentpublic int getCellsCount()
getCellsCount 在接口中 MemStoreSizinggetCellsCount 在类中 Segmentpublic Cell maybeCloneWithAllocator(Cell cell, boolean forceCloneOfBigCell)
maybeCloneWithAllocator 在类中 Segmentpublic boolean shouldSeek(TimeRange tr, long oldestUnexpiredTS)
shouldSeek 在类中 Segmentpublic KeyValueScanner getScanner(long readPoint)
getScanner 在类中 Segmentpublic List<KeyValueScanner> getScanners(long readPoint)
getScanners 在类中 Segmentpublic boolean isTagsPresent()
isTagsPresent 在类中 Segmentpublic void incScannerCount()
incScannerCount 在类中 Segmentpublic void decScannerCount()
decScannerCount 在类中 Segmentprotected CompositeImmutableSegment setCellSet(CellSet cellSetOld, CellSet cellSetNew)
setCellSet 在类中 Segmentprotected long indexEntrySize()
indexEntrySize 在类中 Segmentprotected boolean canBeFlattened()
canBeFlattened 在类中 ImmutableSegmentpublic long getDataSize()
getDataSize 在接口中 MemStoreSizinggetDataSize 在类中 Segmentpublic long getHeapSize()
getHeapSize 在接口中 MemStoreSizinggetHeapSize 在类中 Segmentpublic long incMemStoreSize(long delta,
long heapOverhead,
long offHeapOverhead,
int cellsCount)
incMemStoreSize 在接口中 MemStoreSizingincMemStoreSize 在类中 Segmentpublic long getMinSequenceId()
getMinSequenceId 在类中 Segmentpublic TimeRangeTracker getTimeRangeTracker()
getTimeRangeTracker 在类中 Segmentpublic int compareRows(Cell left, Cell right)
compareRows 在类中 Segmentprotected CellSet getCellSet()
getCellSet 在类中 Segmentprotected void internalAdd(Cell cell, boolean mslabUsed, MemStoreSizing memstoreSizing)
internalAdd 在类中 Segmentprotected void updateMetaInfo(Cell cellToAdd, boolean succ, boolean mslabUsed, MemStoreSizing memstoreSizing)
updateMetaInfo 在类中 Segmentprotected SortedSet<Cell> tailSet(Cell firstCell)
public String toString()
toString 在类中 ImmutableSegmentCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.