Uses of Class
org.apache.jackrabbit.oak.plugins.document.Revision
-
Packages that use Revision Package Description org.apache.jackrabbit.oak.plugins.document org.apache.jackrabbit.oak.plugins.document.mongo org.apache.jackrabbit.oak.plugins.document.util -
-
Uses of Revision in org.apache.jackrabbit.oak.plugins.document
Fields in org.apache.jackrabbit.oak.plugins.document with type parameters of type Revision Modifier and Type Field Description static Comparator<Revision>StableRevisionComparator. INSTANCEstatic Comparator<Revision>StableRevisionComparator. REVERSEMethods in org.apache.jackrabbit.oak.plugins.document that return Revision Modifier and Type Method Description RevisionRevision. asBranchRevision()Returns a revision with the same timestamp, counter and clusterId as this revision and the branch flag set totrue.RevisionRevision. asTrunkRevision()Returns a revision with the same timestamp, counter and clusterId as this revision and the branch flag set tofalse.static RevisionRevision. fromString(String rev)@NotNull RevisionRevisionVector. getBranchRevision()@Nullable RevisionNodeDocument. getLiveRevision(RevisionContext context, RevisionVector readRevision, Map<Revision,String> validRevisions, org.apache.jackrabbit.oak.plugins.document.LastRevs lastRevs)Get the earliest (oldest) revision where the node was alive at or before the provided revision, if the node was alive at the given revision.RevisionRevisionVector. getRevision(int clusterId)Returns the revision element with the given clusterId ornullif there is no such revision in this vector.@Nullable RevisionUpdateOp.Key. getRevision()RevisionJournalGarbageCollector. getTailRevision()static RevisionCheckpointsHelper. min(Set<String> revs)@NotNull RevisionDocumentNodeStore. newRevision()@NotNull RevisionRevisionContext. newRevision()@NotNull RevisionRevisionContextWrapper. newRevision()Methods in org.apache.jackrabbit.oak.plugins.document that return types with arguments of type Revision Modifier and Type Method Description SortedMap<Integer,TreeSet<Revision>>NodeDocumentRevisionCleaner. getBlockedRevisionsToKeep()SortedMap<Integer,TreeSet<Revision>>NodeDocumentRevisionCleaner. getCandidateRevisionsToClean()static SortedMap<Revision,Long>CheckpointsHelper. getCheckpoints(DocumentNodeStore store)@NotNull Map<Integer,Revision>NodeDocument. getLastRev()@NotNull Set<Revision>NodeDocument. getLocalBranchCommits()Returns the branch commit entries on this document (NodeDocument.BRANCH_COMMITS).static @NotNull SortedMap<Revision,String>NodeDocumentHelper. getLocalCommitRoot(NodeDocument doc)static @NotNull SortedMap<Revision,String>NodeDocumentHelper. getLocalMap(NodeDocument doc, String key)protected SortedMap<Revision,TreeSet<String>>NodeDocumentRevisionCleaner. getPropertiesModifiedByRevision()protected SortedMap<String,TreeSet<Revision>>NodeDocumentRevisionCleaner. getRevisionsModifyingProperty()protected SortedMap<String,SortedMap<Integer,TreeSet<Revision>>>NodeDocumentRevisionCleaner. getRevisionsModifyingPropertyByCluster()@NotNull Map<Revision,String>NodeDocument. getValueMap(@NotNull String key)Gets the value map for the given key.Iterator<Revision>RevisionVector. iterator()Methods in org.apache.jackrabbit.oak.plugins.document with parameters of type Revision Modifier and Type Method Description static voidNodeDocument. addCollision(@NotNull UpdateOp op, @NotNull Revision revision, @NotNull Revision other)Add a collision marker for the givenrevision.intStableRevisionComparator. compare(Revision o1, Revision o2)booleanNodeDocument. containsRevision(@NotNull Revision revision)Returnstrueif this document contains an entry for the givenrevisionin theNodeDocument.REVISIONSmap.@Nullable PathNodeDocument. getCommitRootPath(Revision revision)Returns the commit root path for the givenrevisionornullif this document does not have a commit root entry for the givenrevision.StringDocumentNodeStore. getCommitValue(@NotNull Revision changeRevision, @NotNull NodeDocument doc)@Nullable StringRevisionContext. getCommitValue(@NotNull Revision changeRevision, @NotNull NodeDocument doc)Retrieves the commit value for a given change.StringRevisionContextWrapper. getCommitValue(@NotNull Revision revision, @NotNull NodeDocument nodeDocument)@Nullable DocumentNodeStateNodeDocument. getNodeAtRevision(@NotNull DocumentNodeStore nodeStore, @NotNull RevisionVector readRevision, @Nullable Revision lastModified)Returns aDocumentNodeStateas seen at the givenreadRevision.static longRevision. getTimestampDifference(Revision r1, Revision r2)Get the timestamp difference between two revisions (r1 - r2) in milliseconds.static voidNodeDocument. hasLastRev(@NotNull UpdateOp op, @NotNull Revision revision)voidConsistency.Result. inconsistent(Revision revision)Called when the consistency check identified an inconsistency.booleanRevisionVector. isRevisionNewer(@NotNull Revision revision)Returnstrueif the given revision is newer than the revision element with the same clusterId in the vector.static intCheckpointsHelper. remove(DocumentNodeStore store, Revision r)static voidNodeDocument. removeBranchCommit(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. removeCollision(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. removeCommitRoot(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. removeDeleted(@NotNull UpdateOp op, @NotNull Revision revision)voidUpdateOp. removeMapEntry(@NotNull String property, @NotNull Revision revision)Remove a map entry.static longCheckpointsHelper. removeOlderThan(DocumentNodeStore store, Revision r)static voidNodeDocument. removePrevious(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. removeRevision(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. removeStalePrevious(@NotNull UpdateOp op, @NotNull Revision revision)StringCommitValueResolver. resolve(@NotNull Revision changeRevision, @NotNull NodeDocument doc)Resolve a change revision on the given document and return the commit value for the change revision.static voidNodeDocument. setBranchCommit(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. setCommitRoot(@NotNull UpdateOp op, @NotNull Revision revision, int commitRootDepth)static voidNodeDocument. setDeleted(@NotNull UpdateOp op, @NotNull Revision revision, boolean deleted)static voidNodeDocument. setLastRev(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. setModified(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. setRevision(@NotNull UpdateOp op, @NotNull Revision revision, @NotNull String commitValue)static voidNodeDocument. setStalePrevious(@NotNull UpdateOp op, @NotNull Revision revision, int height)static voidNodeDocument. setSweepRevision(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. unsetCommitRoot(@NotNull UpdateOp op, @NotNull Revision revision)static voidNodeDocument. unsetRevision(@NotNull UpdateOp op, @NotNull Revision revision)RevisionVectorRevisionVector. update(@NotNull Revision revision)Creates a new revision vector with based on this vector and the givenrevision.Method parameters in org.apache.jackrabbit.oak.plugins.document with type arguments of type Revision Modifier and Type Method Description @Nullable RevisionNodeDocument. getLiveRevision(RevisionContext context, RevisionVector readRevision, Map<Revision,String> validRevisions, org.apache.jackrabbit.oak.plugins.document.LastRevs lastRevs)Get the earliest (oldest) revision where the node was alive at or before the provided revision, if the node was alive at the given revision.Constructors in org.apache.jackrabbit.oak.plugins.document with parameters of type Revision Constructor Description Key(@NotNull String name, @Nullable Revision revision)RevisionVector(@NotNull Revision... revisions)Constructor parameters in org.apache.jackrabbit.oak.plugins.document with type arguments of type Revision Constructor Description RevisionVector(@NotNull Iterable<Revision> revisions)RevisionVector(@NotNull Set<Revision> revisions) -
Uses of Revision in org.apache.jackrabbit.oak.plugins.document.mongo
Constructors in org.apache.jackrabbit.oak.plugins.document.mongo with parameters of type Revision Constructor Description RevisionEntry(@NotNull Revision revision, @Nullable Object value) -
Uses of Revision in org.apache.jackrabbit.oak.plugins.document.util
Methods in org.apache.jackrabbit.oak.plugins.document.util that return Revision Modifier and Type Method Description static @Nullable RevisionUtils. max(@Nullable Revision a, @Nullable Revision b)Returns the revision with the newer timestamp ornullif both revisions arenull.static @Nullable RevisionUtils. max(@Nullable Revision a, @Nullable Revision b, @NotNull Comparator<Revision> c)Returns the revision which is considered more recent ornullif both revisions arenull.static @Nullable RevisionUtils. min(@Nullable Revision a, @Nullable Revision b)Returns the revision with the older timestamp ornullif both revisions arenull.static @Nullable RevisionUtils. min(@Nullable Revision a, @Nullable Revision b, @NotNull Comparator<Revision> c)Returns the revision which is considered older ornullif both revisions arenull.static @NotNull RevisionUtils. resolveCommitRevision(@NotNull Revision rev, @NotNull String tag)Resolve the commit revision for the given revisionrevand the associated commit tag.Methods in org.apache.jackrabbit.oak.plugins.document.util that return types with arguments of type Revision Modifier and Type Method Description org.mapdb.BTreeMap<Path,Revision>MapDBMapFactory. create()abstract ConcurrentMap<Path,Revision>MapFactory. create()Methods in org.apache.jackrabbit.oak.plugins.document.util with parameters of type Revision Modifier and Type Method Description static StringUtils. getPreviousIdFor(Path path, Revision r, int height)static PathUtils. getPreviousPathFor(Path path, Revision r, int height)static @Nullable RevisionUtils. max(@Nullable Revision a, @Nullable Revision b)Returns the revision with the newer timestamp ornullif both revisions arenull.static @Nullable RevisionUtils. max(@Nullable Revision a, @Nullable Revision b, @NotNull Comparator<Revision> c)Returns the revision which is considered more recent ornullif both revisions arenull.static @Nullable RevisionUtils. min(@Nullable Revision a, @Nullable Revision b)Returns the revision with the older timestamp ornullif both revisions arenull.static @Nullable RevisionUtils. min(@Nullable Revision a, @Nullable Revision b, @NotNull Comparator<Revision> c)Returns the revision which is considered older ornullif both revisions arenull.static @NotNull RevisionUtils. resolveCommitRevision(@NotNull Revision rev, @NotNull String tag)Resolve the commit revision for the given revisionrevand the associated commit tag.Method parameters in org.apache.jackrabbit.oak.plugins.document.util with type arguments of type Revision Modifier and Type Method Description static longUtils. getMaxExternalTimestamp(Iterable<Revision> revisions, int localClusterId)Returns the highest timestamp of all the passed external revisions.static @Nullable RevisionUtils. max(@Nullable Revision a, @Nullable Revision b, @NotNull Comparator<Revision> c)Returns the revision which is considered more recent ornullif both revisions arenull.static @Nullable RevisionUtils. min(@Nullable Revision a, @Nullable Revision b, @NotNull Comparator<Revision> c)Returns the revision which is considered older ornullif both revisions arenull.
-