public class MongoVersionGCSupport extends VersionGCSupport
Version collection involves looking into old record and mostly unmodified documents. In such case read from secondaries are preferred
| Constructor and Description |
|---|
MongoVersionGCSupport(MongoDocumentStore store) |
| Modifier and Type | Method and Description |
|---|---|
protected SplitDocumentCleanUp |
createCleanUp(Set<NodeDocument.SplitDocType> gcTypes,
RevisionVector sweepRevs,
long oldestRevTimeStamp,
VersionGarbageCollector.VersionGCStats stats) |
long |
getDeletedOnceCount() |
long |
getOldestDeletedOnceTimestamp(org.apache.jackrabbit.oak.stats.Clock clock,
long precisionMs)
Retrieve the time of the oldest document marked as 'deletedOnce'.
|
CloseableIterable<NodeDocument> |
getPossiblyDeletedDocs(long fromModified,
long toModified)
Returns documents that have a
NodeDocument.MODIFIED_IN_SECS value
within the given range and the NodeDocument.DELETED set to
true. |
protected Iterable<NodeDocument> |
identifyGarbage(Set<NodeDocument.SplitDocType> gcTypes,
RevisionVector sweepRevs,
long oldestRevTimeStamp) |
getDocumentStore, isDefaultNoBranchSplitNewerThanpublic MongoVersionGCSupport(MongoDocumentStore store)
public CloseableIterable<NodeDocument> getPossiblyDeletedDocs(long fromModified, long toModified)
VersionGCSupportNodeDocument.MODIFIED_IN_SECS value
within the given range and the NodeDocument.DELETED set to
true. The two passed modified timestamps are in milliseconds
since the epoch and the implementation will convert them to seconds at
the granularity of the NodeDocument.MODIFIED_IN_SECS field and
then perform the comparison.getPossiblyDeletedDocs in class VersionGCSupportfromModified - the lower bound modified timestamp (inclusive)toModified - the upper bound modified timestamp (exclusive)public long getDeletedOnceCount()
getDeletedOnceCount in class VersionGCSupportprotected SplitDocumentCleanUp createCleanUp(Set<NodeDocument.SplitDocType> gcTypes, RevisionVector sweepRevs, long oldestRevTimeStamp, VersionGarbageCollector.VersionGCStats stats)
createCleanUp in class VersionGCSupportprotected Iterable<NodeDocument> identifyGarbage(Set<NodeDocument.SplitDocType> gcTypes, RevisionVector sweepRevs, long oldestRevTimeStamp)
identifyGarbage in class VersionGCSupportpublic long getOldestDeletedOnceTimestamp(org.apache.jackrabbit.oak.stats.Clock clock, long precisionMs)
VersionGCSupportgetOldestDeletedOnceTimestamp in class VersionGCSupportprecisionMs - the exact time may vary by given precisionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.