Class RDBVersionGCSupport
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.VersionGCSupport
-
- org.apache.jackrabbit.oak.plugins.document.rdb.RDBVersionGCSupport
-
public class RDBVersionGCSupport extends VersionGCSupport
RDB specific version ofVersionGCSupport
which uses an extended query interface to fetch requiredNodeDocument
s.
-
-
Constructor Summary
Constructors Constructor Description RDBVersionGCSupport(RDBDocumentStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDeletedOnceCount()
long
getOldestDeletedOnceTimestamp(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 aNodeDocument.MODIFIED_IN_SECS
value within the given range and theNodeDocument.DELETED
set totrue
.protected Iterable<NodeDocument>
identifyGarbage(Set<NodeDocument.SplitDocType> gcTypes, RevisionVector sweepRevs, long oldestRevTimeStamp)
-
Methods inherited from class org.apache.jackrabbit.oak.plugins.document.VersionGCSupport
createCleanUp, getDocument, getDocumentStore, getFullGCBin, getModifiedDocs, getOldestModifiedDoc, isDefaultNoBranchSplitNewerThan
-
-
-
-
Constructor Detail
-
RDBVersionGCSupport
public RDBVersionGCSupport(RDBDocumentStore store)
-
-
Method Detail
-
getPossiblyDeletedDocs
public Iterable<NodeDocument> getPossiblyDeletedDocs(long fromModified, long toModified)
Description copied from class:VersionGCSupport
Returns documents that have aNodeDocument.MODIFIED_IN_SECS
value within the given range and theNodeDocument.DELETED
set totrue
. The two passed modified timestamps are in milliseconds since the epoch and the implementation will convert them to seconds at the granularity of theNodeDocument.MODIFIED_IN_SECS
field and then perform the comparison.- Overrides:
getPossiblyDeletedDocs
in classVersionGCSupport
- Parameters:
fromModified
- the lower bound modified timestamp (inclusive)toModified
- the upper bound modified timestamp (exclusive)- Returns:
- matching documents.
-
identifyGarbage
protected Iterable<NodeDocument> identifyGarbage(Set<NodeDocument.SplitDocType> gcTypes, RevisionVector sweepRevs, long oldestRevTimeStamp)
- Overrides:
identifyGarbage
in classVersionGCSupport
-
getOldestDeletedOnceTimestamp
public long getOldestDeletedOnceTimestamp(Clock clock, long precisionMs)
Description copied from class:VersionGCSupport
Retrieve the time of the oldest document marked as 'deletedOnce'.- Overrides:
getOldestDeletedOnceTimestamp
in classVersionGCSupport
precisionMs
- the exact time may vary by given precision- Returns:
- the timestamp of the oldest document marked with 'deletecOnce', module given prevision. If no such document exists, returns the max time inspected (close to current time).
-
getDeletedOnceCount
public long getDeletedOnceCount()
- Overrides:
getDeletedOnceCount
in classVersionGCSupport
-
-