public class CompositeImmutableSegment extends ImmutableSegment
DEEP_OVERHEADFIXED_OVERHEAD, memStoreSizing, minSequenceId, tagsPresent, timeRangeTrackerDUD| Constructor and Description |
|---|
CompositeImmutableSegment(CellComparator comparator,
java.util.List<ImmutableSegment> segments) |
| Modifier and Type | Method and Description |
|---|---|
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() |
java.util.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
|
KeyValueScanner |
getScanner(long readPoint,
long order)
Creates the scanner for the given read point, and a specific order in a list
|
java.util.List<KeyValueScanner> |
getScanners(long readPoint,
long order) |
TimeRangeTracker |
getTimeRangeTracker() |
java.util.SortedSet<Cell> |
headSet(Cell firstKeyOnRow) |
long |
incMemStoreSize(long delta,
long heapOverhead,
long offHeapOverhead)
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() |
java.util.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 java.util.SortedSet<Cell> |
tailSet(Cell firstCell)
Returns a subset of the segment cell set, which starts with the given cell
|
java.lang.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,
java.util.List<ImmutableSegment> segments)
public java.util.List<Segment> getAllSegments()
getAllSegments in class ImmutableSegmentpublic int getNumOfSegments()
getNumOfSegments in class ImmutableSegmentpublic boolean isEmpty()
public int getCellsCount()
getCellsCount in class Segmentpublic void close()
public Cell maybeCloneWithAllocator(Cell cell,
boolean forceCloneOfBigCell)
maybeCloneWithAllocator in class Segmentpublic boolean shouldSeek(TimeRange tr,
long oldestUnexpiredTS)
shouldSeek in class Segmentpublic KeyValueScanner getScanner(long readPoint)
getScanner in class Segmentpublic KeyValueScanner getScanner(long readPoint, long order)
getScanner in class Segmentpublic java.util.List<KeyValueScanner> getScanners(long readPoint, long order)
getScanners in class Segmentpublic boolean isTagsPresent()
isTagsPresent in class Segmentpublic void incScannerCount()
incScannerCount in class Segmentpublic void decScannerCount()
decScannerCount in class Segmentprotected CompositeImmutableSegment setCellSet(CellSet cellSetOld, CellSet cellSetNew)
setCellSet in class Segmentprotected long indexEntrySize()
indexEntrySize in class Segmentprotected boolean canBeFlattened()
canBeFlattened in class ImmutableSegmentpublic long getDataSize()
getDataSize in interface MemStoreSizinggetDataSize in class Segmentpublic long getHeapSize()
getHeapSize in interface MemStoreSizinggetHeapSize in class Segmentpublic long incMemStoreSize(long delta,
long heapOverhead,
long offHeapOverhead)
incMemStoreSize in interface MemStoreSizingincMemStoreSize in class Segmentpublic long getMinSequenceId()
getMinSequenceId in class Segmentpublic TimeRangeTracker getTimeRangeTracker()
getTimeRangeTracker in class Segmentpublic java.util.SortedSet<Cell> headSet(Cell firstKeyOnRow)
public int compareRows(Cell left,
Cell right)
compareRows in class Segmentprotected CellSet getCellSet()
getCellSet in class Segmentprotected void internalAdd(Cell cell,
boolean mslabUsed,
MemStoreSizing memstoreSizing)
internalAdd in class Segmentprotected void updateMetaInfo(Cell cellToAdd,
boolean succ,
boolean mslabUsed,
MemStoreSizing memstoreSizing)
updateMetaInfo in class Segmentprotected java.util.SortedSet<Cell> tailSet(Cell firstCell)
public java.lang.String toString()
toString in class ImmutableSegment