public class RDBVersionGCSupport extends VersionGCSupport
VersionGCSupport which uses an extended query
interface to fetch required NodeDocuments.| Constructor and Description |
|---|
RDBVersionGCSupport(RDBDocumentStore store) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDeletedOnceCount() |
long |
getOldestDeletedOnceTimestamp(org.apache.jackrabbit.oak.stats.Clock clock,
long precisionMs)
Retrieve the time of the oldest document marked as 'deletedOnce'.
|
Iterable<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) |
createCleanUp, getDocumentStore, isDefaultNoBranchSplitNewerThanpublic RDBVersionGCSupport(RDBDocumentStore store)
public Iterable<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)protected 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 precisionpublic long getDeletedOnceCount()
getDeletedOnceCount in class VersionGCSupportCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.