public class SegmentTracker extends Object
Constructor and Description |
---|
SegmentTracker(SegmentStore store) |
SegmentTracker(SegmentStore store,
int cacheSizeMB) |
Modifier and Type | Method and Description |
---|---|
void |
collectBlobReferences(ReferenceCollector collector)
Finds all external blob references that are currently accessible
in this repository and adds them to the given collector.
|
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)
public SegmentTracker(SegmentStore store)
public SegmentWriter getWriter()
public SegmentStore getStore()
public void setCompactionMap(CompactionMap compaction)
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
- "Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"