public class SegmentTracker extends Object
It is also responsible to cache segment objects in memory.
Constructor and Description |
---|
SegmentTracker(SegmentStore store) |
SegmentTracker(SegmentStore store,
int cacheSizeMB,
SegmentVersion version) |
SegmentTracker(SegmentStore store,
SegmentVersion version) |
Modifier and Type | Method and Description |
---|---|
void |
clearSegmentIdTables(CompactionStrategy strategy) |
void |
collectBlobReferences(ReferenceCollector collector)
Finds all external blob references that are currently accessible
in this repository and adds them to the given collector.
|
CompactionMap |
getCompactionMap() |
Set<SegmentId> |
getReferencedSegmentIds()
Returns all segment identifiers that are currently referenced in memory.
|
SegmentId |
getSegmentId(long msb,
long lsb) |
SegmentStore |
getStore() |
SegmentWriter |
getWriter() |
void |
setCompactionMap(CompactionMap compaction) |
public SegmentTracker(SegmentStore store, int cacheSizeMB, SegmentVersion version)
public SegmentTracker(SegmentStore store, SegmentVersion version)
public SegmentTracker(SegmentStore store)
public SegmentWriter getWriter()
public SegmentStore getStore()
public void setCompactionMap(CompactionMap compaction)
public CompactionMap getCompactionMap()
public Set<SegmentId> getReferencedSegmentIds()
public void collectBlobReferences(ReferenceCollector collector)
Note that this method only collects blob references that are already stored in the repository (at the time when this method is called), so the garbage collector will need some other mechanism for tracking in-memory references and references stored while this method is running.
public SegmentId getSegmentId(long msb, long lsb)
msb
- lsb
- public void clearSegmentIdTables(CompactionStrategy strategy)
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"