Class RDBVersionGCSupport

    • Constructor Detail

    • Method Detail

      • getPossiblyDeletedDocs

        public java.lang.Iterable<NodeDocument> getPossiblyDeletedDocs​(long fromModified,
                                                                       long toModified)
        Description copied from class: VersionGCSupport
        Returns documents that have a NodeDocument.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.
        Overrides:
        getPossiblyDeletedDocs in class VersionGCSupport
        Parameters:
        fromModified - the lower bound modified timestamp (inclusive)
        toModified - the upper bound modified timestamp (exclusive)
        Returns:
        matching documents.
      • getOldestDeletedOnceTimestamp

        public long getOldestDeletedOnceTimestamp​(org.apache.jackrabbit.oak.stats.Clock clock,
                                                  long precisionMs)
        Description copied from class: VersionGCSupport
        Retrieve the time of the oldest document marked as 'deletedOnce'.
        Overrides:
        getOldestDeletedOnceTimestamp in class VersionGCSupport
        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).