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 java.util.Comparator<Revision>
StableRevisionComparator. INSTANCE
static java.util.Comparator<Revision>
StableRevisionComparator. REVERSE
Methods in org.apache.jackrabbit.oak.plugins.document that return Revision Modifier and Type Method Description Revision
Revision. asBranchRevision()
Returns a revision with the same timestamp, counter and clusterId as this revision and the branch flag set totrue
.Revision
Revision. asTrunkRevision()
Returns a revision with the same timestamp, counter and clusterId as this revision and the branch flag set tofalse
.static Revision
Revision. fromString(java.lang.String rev)
@NotNull Revision
RevisionVector. getBranchRevision()
@Nullable Revision
NodeDocument. getLiveRevision(RevisionContext context, RevisionVector readRevision, java.util.Map<Revision,java.lang.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.Revision
RevisionVector. getRevision(int clusterId)
Returns the revision element with the given clusterId ornull
if there is no such revision in this vector.@Nullable Revision
UpdateOp.Key. getRevision()
Revision
JournalGarbageCollector. getTailRevision()
static Revision
CheckpointsHelper. min(java.util.Set<java.lang.String> revs)
@NotNull Revision
DocumentNodeStore. newRevision()
@NotNull Revision
RevisionContext. newRevision()
@NotNull Revision
RevisionContextWrapper. newRevision()
Methods in org.apache.jackrabbit.oak.plugins.document that return types with arguments of type Revision Modifier and Type Method Description static java.util.SortedMap<Revision,java.lang.Long>
CheckpointsHelper. getCheckpoints(DocumentNodeStore store)
@NotNull java.util.Map<java.lang.Integer,Revision>
NodeDocument. getLastRev()
@NotNull java.util.Set<Revision>
NodeDocument. getLocalBranchCommits()
Returns the branch commit entries on this document (NodeDocument.BRANCH_COMMITS
).static @NotNull java.util.SortedMap<Revision,java.lang.String>
NodeDocumentHelper. getLocalCommitRoot(NodeDocument doc)
static @NotNull java.util.SortedMap<Revision,java.lang.String>
NodeDocumentHelper. getLocalMap(NodeDocument doc, java.lang.String key)
@NotNull java.util.Map<Revision,java.lang.String>
NodeDocument. getValueMap(@NotNull java.lang.String key)
Gets the value map for the given key.java.util.Iterator<Revision>
RevisionVector. iterator()
Methods in org.apache.jackrabbit.oak.plugins.document with parameters of type Revision Modifier and Type Method Description static void
NodeDocument. addCollision(@NotNull UpdateOp op, @NotNull Revision revision, @NotNull Revision other)
Add a collision marker for the givenrevision
.int
StableRevisionComparator. compare(Revision o1, Revision o2)
boolean
NodeDocument. containsRevision(@NotNull Revision revision)
Returnstrue
if this document contains an entry for the givenrevision
in theNodeDocument.REVISIONS
map.@Nullable Path
NodeDocument. getCommitRootPath(Revision revision)
Returns the commit root path for the givenrevision
ornull
if this document does not have a commit root entry for the givenrevision
.java.lang.String
DocumentNodeStore. getCommitValue(@NotNull Revision changeRevision, @NotNull NodeDocument doc)
@Nullable java.lang.String
RevisionContext. getCommitValue(@NotNull Revision changeRevision, @NotNull NodeDocument doc)
Retrieves the commit value for a given change.java.lang.String
RevisionContextWrapper. getCommitValue(@NotNull Revision revision, @NotNull NodeDocument nodeDocument)
@Nullable DocumentNodeState
NodeDocument. getNodeAtRevision(@NotNull DocumentNodeStore nodeStore, @NotNull RevisionVector readRevision, @Nullable Revision lastModified)
Returns aDocumentNodeState
as seen at the givenreadRevision
.static long
Revision. getTimestampDifference(Revision r1, Revision r2)
Get the timestamp difference between two revisions (r1 - r2) in milliseconds.static void
NodeDocument. hasLastRev(@NotNull UpdateOp op, @NotNull Revision revision)
void
Consistency.Result. inconsistent(Revision revision)
Called when the consistency check identified an inconsistency.boolean
RevisionVector. isRevisionNewer(@NotNull Revision revision)
Returnstrue
if the given revision is newer than the revision element with the same clusterId in the vector.static int
CheckpointsHelper. remove(DocumentNodeStore store, Revision r)
static void
NodeDocument. removeBranchCommit(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. removeCollision(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. removeCommitRoot(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. removeDeleted(@NotNull UpdateOp op, @NotNull Revision revision)
void
UpdateOp. removeMapEntry(@NotNull java.lang.String property, @NotNull Revision revision)
Remove a map entry.static long
CheckpointsHelper. removeOlderThan(DocumentNodeStore store, Revision r)
static void
NodeDocument. removePrevious(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. removeRevision(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. removeStalePrevious(@NotNull UpdateOp op, @NotNull Revision revision)
java.lang.String
CommitValueResolver. 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 void
NodeDocument. setBranchCommit(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. setCommitRoot(@NotNull UpdateOp op, @NotNull Revision revision, int commitRootDepth)
static void
NodeDocument. setDeleted(@NotNull UpdateOp op, @NotNull Revision revision, boolean deleted)
static void
NodeDocument. setLastRev(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. setModified(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. setRevision(@NotNull UpdateOp op, @NotNull Revision revision, @NotNull java.lang.String commitValue)
static void
NodeDocument. setStalePrevious(@NotNull UpdateOp op, @NotNull Revision revision, int height)
static void
NodeDocument. setSweepRevision(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. unsetCommitRoot(@NotNull UpdateOp op, @NotNull Revision revision)
static void
NodeDocument. unsetRevision(@NotNull UpdateOp op, @NotNull Revision revision)
RevisionVector
RevisionVector. 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 Revision
NodeDocument. getLiveRevision(RevisionContext context, RevisionVector readRevision, java.util.Map<Revision,java.lang.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 java.lang.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 java.lang.Iterable<Revision> revisions)
RevisionVector(@NotNull java.util.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 java.lang.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 Revision
Utils. max(@Nullable Revision a, @Nullable Revision b)
Returns the revision with the newer timestamp ornull
if both revisions arenull
.static @Nullable Revision
Utils. max(@Nullable Revision a, @Nullable Revision b, @NotNull java.util.Comparator<Revision> c)
Returns the revision which is considered more recent ornull
if both revisions arenull
.static @Nullable Revision
Utils. min(@Nullable Revision a, @Nullable Revision b)
Returns the revision with the older timestamp ornull
if both revisions arenull
.static @Nullable Revision
Utils. min(@Nullable Revision a, @Nullable Revision b, @NotNull java.util.Comparator<Revision> c)
Returns the revision which is considered older ornull
if both revisions arenull
.static @NotNull Revision
Utils. resolveCommitRevision(@NotNull Revision rev, @NotNull java.lang.String tag)
Resolve the commit revision for the given revisionrev
and 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 java.util.concurrent.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 java.lang.String
Utils. getPreviousIdFor(Path path, Revision r, int height)
static Path
Utils. getPreviousPathFor(Path path, Revision r, int height)
static @Nullable Revision
Utils. max(@Nullable Revision a, @Nullable Revision b)
Returns the revision with the newer timestamp ornull
if both revisions arenull
.static @Nullable Revision
Utils. max(@Nullable Revision a, @Nullable Revision b, @NotNull java.util.Comparator<Revision> c)
Returns the revision which is considered more recent ornull
if both revisions arenull
.static @Nullable Revision
Utils. min(@Nullable Revision a, @Nullable Revision b)
Returns the revision with the older timestamp ornull
if both revisions arenull
.static @Nullable Revision
Utils. min(@Nullable Revision a, @Nullable Revision b, @NotNull java.util.Comparator<Revision> c)
Returns the revision which is considered older ornull
if both revisions arenull
.static @NotNull Revision
Utils. resolveCommitRevision(@NotNull Revision rev, @NotNull java.lang.String tag)
Resolve the commit revision for the given revisionrev
and 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 long
Utils. getMaxExternalTimestamp(java.lang.Iterable<Revision> revisions, int localClusterId)
Returns the highest timestamp of all the passed external revisions.static @Nullable Revision
Utils. max(@Nullable Revision a, @Nullable Revision b, @NotNull java.util.Comparator<Revision> c)
Returns the revision which is considered more recent ornull
if both revisions arenull
.static @Nullable Revision
Utils. min(@Nullable Revision a, @Nullable Revision b, @NotNull java.util.Comparator<Revision> c)
Returns the revision which is considered older ornull
if both revisions arenull
.
-