Constructor and Description |
---|
SegmentTracker() |
Modifier and Type | Method and Description |
---|---|
void |
clearSegmentIdTables(Set<UUID> reclaimed,
String gcInfo) |
Set<SegmentId> |
getReferencedSegmentIds()
Returns all segment identifiers that are currently referenced in memory.
|
SegmentId |
newBulkSegmentId(SegmentIdFactory maker)
Create and track a new segment id for bulk segments.
|
SegmentId |
newDataSegmentId(SegmentIdFactory maker)
Create and track a new segment id for data segments.
|
SegmentId |
newSegmentId(long msb,
long lsb,
SegmentIdFactory maker)
Get an existing
SegmentId with the given msb and lsb or create a new one if no such id exists with this tracker. |
public Set<SegmentId> getReferencedSegmentIds()
@Nonnull public SegmentId newSegmentId(long msb, long lsb, SegmentIdFactory maker)
SegmentId
with the given msb
and lsb
or create a new one if no such id exists with this tracker.msb
- most significant bits of the segment idlsb
- least significant bits of the segment idmaker
- A non-null
instance of SegmentIdFactory
.@Nonnull public SegmentId newDataSegmentId(SegmentIdFactory maker)
maker
- A non-null
instance of SegmentIdFactory
.@Nonnull public SegmentId newBulkSegmentId(SegmentIdFactory maker)
maker
- A non-null
instance of SegmentIdFactory
.Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.