public class SegmentTracker
extends java.lang.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 |
clearCache()
Clear the caches
|
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.
|
SegmentWriter |
createSegmentWriter(java.lang.String wid) |
CompactionMap |
getCompactionMap() |
java.util.Set<SegmentId> |
getReferencedSegmentIds()
Returns all segment identifiers that are currently referenced in memory.
|
CacheStats |
getSegmentCacheStats() |
SegmentId |
getSegmentId(long msb,
long lsb) |
SegmentStore |
getStore() |
CacheStats |
getStringCacheStats() |
SegmentWriter |
getWriter() |
void |
setCompactionMap(PartialCompactionMap map) |
public SegmentTracker(SegmentStore store, int cacheSizeMB, SegmentVersion version)
public SegmentTracker(SegmentStore store, SegmentVersion version)
public SegmentTracker(SegmentStore store)
public final SegmentWriter createSegmentWriter(java.lang.String wid)
SegmentWriter
instance for writing to this store.public CacheStats getSegmentCacheStats()
public CacheStats getStringCacheStats()
public SegmentWriter getWriter()
public SegmentStore getStore()
public void clearCache()
public void setCompactionMap(PartialCompactionMap map)
public CompactionMap getCompactionMap()
public java.util.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 © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"