| Package | Description |
|---|---|
| org.apache.jackrabbit.oak.plugins.document | |
| org.apache.jackrabbit.oak.plugins.document.mongo | |
| org.apache.jackrabbit.oak.plugins.document.util |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<Revision> |
StableRevisionComparator.INSTANCE |
static Comparator<Revision> |
StableRevisionComparator.REVERSE |
| Modifier and Type | Method and Description |
|---|---|
Revision |
Revision.asBranchRevision()
Returns a revision with the same timestamp, counter and clusterId as this
revision and the branch flag set to
true. |
Revision |
Revision.asTrunkRevision()
Returns a revision with the same timestamp, counter and clusterId as this
revision and the branch flag set to
false. |
static Revision |
Revision.fromString(String rev) |
@NotNull Revision |
RevisionVector.getBranchRevision() |
@Nullable Revision |
NodeDocument.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.
|
@Nullable Revision |
UpdateOp.Key.getRevision() |
Revision |
RevisionVector.getRevision(int clusterId)
Returns the revision element with the given clusterId or
null
if there is no such revision in this vector. |
Revision |
JournalGarbageCollector.getTailRevision() |
@NotNull Revision |
DocumentNodeStore.newRevision() |
@NotNull Revision |
RevisionContext.newRevision() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Revision> |
RevisionVector.iterator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
NodeDocument.addCollision(@NotNull UpdateOp op,
@NotNull Revision revision,
@NotNull Revision other)
Add a collision marker for the given
revision. |
static void |
NodeDocument.addCollision(@NotNull UpdateOp op,
@NotNull Revision revision,
@NotNull Revision other)
Add a collision marker for the given
revision. |
int |
StableRevisionComparator.compare(Revision o1,
Revision o2) |
boolean |
NodeDocument.containsRevision(@NotNull Revision revision)
Returns
true if this document contains an entry for the
given revision in the NodeDocument.REVISIONS map. |
@Nullable String |
NodeDocument.getCommitRootPath(Revision revision)
Returns the commit root path for the given
revision or
null if this document does not have a commit root entry for
the given revision. |
String |
DocumentNodeStore.getCommitValue(@NotNull Revision changeRevision,
@NotNull NodeDocument doc) |
@Nullable String |
RevisionContext.getCommitValue(@NotNull Revision changeRevision,
@NotNull NodeDocument doc)
Retrieves the commit value for a given change.
|
@Nullable DocumentNodeState |
NodeDocument.getNodeAtRevision(@NotNull DocumentNodeStore nodeStore,
@NotNull RevisionVector readRevision,
@Nullable Revision lastModified)
Returns a
DocumentNodeState as seen at the given
readRevision. |
static long |
Revision.getTimestampDifference(Revision r1,
Revision r2)
Get the timestamp difference between two revisions (r1 - r2) in
milliseconds.
|
boolean |
RevisionVector.isRevisionNewer(@NotNull Revision revision)
Returns
true if the given revision is newer than the revision
element with the same clusterId in the vector. |
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 String property,
@NotNull Revision revision)
Remove a map entry.
|
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) |
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 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 given
revision. |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Revision |
NodeDocument.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.
|
| Constructor and Description |
|---|
Key(@NotNull String name,
@Nullable Revision revision) |
RevisionVector(Revision... revisions) |
| Constructor and Description |
|---|
RevisionEntry(@NotNull Revision revision,
@Nullable Object value) |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable Revision |
Utils.max(@Nullable Revision a,
@Nullable Revision b)
Returns the revision with the newer timestamp or
null if both
revisions are null. |
static @Nullable Revision |
Utils.max(@Nullable Revision a,
@Nullable Revision b,
@NotNull Comparator<Revision> c)
Returns the revision which is considered more recent or
null if
both revisions are null. |
static @Nullable Revision |
Utils.min(@Nullable Revision a,
@Nullable Revision b)
Returns the revision with the older timestamp or
null if both
revisions are null. |
static @Nullable Revision |
Utils.min(@Nullable Revision a,
@Nullable Revision b,
@NotNull Comparator<Revision> c)
Returns the revision which is considered older or
null if
both revisions are null. |
static @NotNull Revision |
Utils.resolveCommitRevision(@NotNull Revision rev,
@NotNull String tag)
Resolve the commit revision for the given revision
rev and
the associated commit tag. |
| Modifier and Type | Method and Description |
|---|---|
abstract ConcurrentMap<String,Revision> |
MapFactory.create() |
| Modifier and Type | Method and Description |
|---|---|
static String |
Utils.getPreviousIdFor(String path,
Revision r,
int height) |
static String |
Utils.getPreviousPathFor(String path,
Revision r,
int height) |
static @Nullable Revision |
Utils.max(@Nullable Revision a,
@Nullable Revision b)
Returns the revision with the newer timestamp or
null if both
revisions are null. |
static @Nullable Revision |
Utils.max(@Nullable Revision a,
@Nullable Revision b)
Returns the revision with the newer timestamp or
null if both
revisions are null. |
static @Nullable Revision |
Utils.max(@Nullable Revision a,
@Nullable Revision b,
@NotNull Comparator<Revision> c)
Returns the revision which is considered more recent or
null if
both revisions are null. |
static @Nullable Revision |
Utils.max(@Nullable Revision a,
@Nullable Revision b,
@NotNull Comparator<Revision> c)
Returns the revision which is considered more recent or
null if
both revisions are null. |
static @Nullable Revision |
Utils.min(@Nullable Revision a,
@Nullable Revision b)
Returns the revision with the older timestamp or
null if both
revisions are null. |
static @Nullable Revision |
Utils.min(@Nullable Revision a,
@Nullable Revision b)
Returns the revision with the older timestamp or
null if both
revisions are null. |
static @Nullable Revision |
Utils.min(@Nullable Revision a,
@Nullable Revision b,
@NotNull Comparator<Revision> c)
Returns the revision which is considered older or
null if
both revisions are null. |
static @Nullable Revision |
Utils.min(@Nullable Revision a,
@Nullable Revision b,
@NotNull Comparator<Revision> c)
Returns the revision which is considered older or
null if
both revisions are null. |
static @NotNull Revision |
Utils.resolveCommitRevision(@NotNull Revision rev,
@NotNull String tag)
Resolve the commit revision for the given revision
rev and
the associated commit tag. |
| Modifier and Type | Method and Description |
|---|---|
static long |
Utils.getMaxExternalTimestamp(Iterable<Revision> revisions,
int localClusterId)
Returns the highest timestamp of all the passed external revisions.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.