| Package | Description |
|---|---|
| org.apache.jackrabbit.oak.plugins.document | |
| org.apache.jackrabbit.oak.plugins.document.memory | |
| org.apache.jackrabbit.oak.plugins.document.mongo | |
| org.apache.jackrabbit.oak.plugins.document.rdb |
Implementations of
DocumentStore and BlobStore for relational databases. |
| org.apache.jackrabbit.oak.plugins.document.util |
| Modifier and Type | Method and Description |
|---|---|
UpdateOp |
UpdateOp.copy()
Creates a deep copy of this update operation.
|
UpdateOp |
UpdateOp.getReverseOperation() |
UpdateOp |
UpdateOp.shallowCopy(String id)
Creates an update operation for the document with the given id.
|
| 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 |
UpdateUtils.applyChanges(@NotNull Document doc,
@NotNull UpdateOp update)
Apply the changes to the in-memory document.
|
static void |
UpdateUtils.assertUnconditional(@NotNull UpdateOp up)
Ensures that the given
UpdateOp is unconditional |
<T extends Document> |
DocumentStore.createOrUpdate(Collection<T> collection,
UpdateOp update)
Atomically checks if the document exists and updates it, otherwise the
document is created (aka "upsert"), unless the update operation requires
the document to be present (see
isNew()). |
<T extends Document> |
DocumentStore.findAndUpdate(Collection<T> collection,
UpdateOp update)
Performs a conditional update (e.g.
|
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) |
static void |
NodeDocument.removePrevious(@NotNull UpdateOp op,
@NotNull org.apache.jackrabbit.oak.plugins.document.Range range) |
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) |
static void |
NodeDocument.setBranchCommit(@NotNull UpdateOp op,
@NotNull Revision revision) |
static void |
NodeDocument.setChildrenFlag(@NotNull UpdateOp op,
boolean hasChildNode) |
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.setDeletedOnce(@NotNull UpdateOp op) |
static void |
NodeDocument.setHasBinary(@NotNull UpdateOp op) |
static void |
NodeDocument.setLastRev(@NotNull UpdateOp op,
@NotNull Revision revision) |
static void |
NodeDocument.setModified(@NotNull UpdateOp op,
@NotNull Revision revision) |
static void |
NodeDocument.setPrevious(@NotNull UpdateOp op,
@NotNull org.apache.jackrabbit.oak.plugins.document.Range range) |
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) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
DocumentStore.create(Collection<T> collection,
List<UpdateOp> updateOps)
Try to create a list of documents.
|
<T extends Document> |
DocumentStore.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps)
Create or unconditionally update a number of documents.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
MemoryDocumentStore.createOrUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
MemoryDocumentStore.findAndUpdate(Collection<T> collection,
UpdateOp update) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
MemoryDocumentStore.create(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
MemoryDocumentStore.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
MongoDocumentStore.createOrUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
MongoDocumentStore.findAndUpdate(Collection<T> collection,
UpdateOp update) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
MongoDocumentStore.create(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
MongoDocumentStore.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps)
Try to apply all the
UpdateOps with at least MongoDB requests as
possible. |
| Modifier and Type | Method and Description |
|---|---|
String |
RDBDocumentSerializer.asString(UpdateOp update,
Set<String> columnProperties)
Serializes the changes in the
UpdateOp into a JSON array; each
entry is another JSON array holding operation, key, revision, and value. |
<T extends Document> |
RDBDocumentStore.createOrUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
RDBDocumentStore.findAndUpdate(Collection<T> collection,
UpdateOp update) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
RDBDocumentStore.create(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
RDBDocumentStore.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
LoggingDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
TimingDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
LeaseCheckDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
SynchronizingDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
LoggingDocumentStoreWrapper.findAndUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
TimingDocumentStoreWrapper.findAndUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
LeaseCheckDocumentStoreWrapper.findAndUpdate(Collection<T> collection,
UpdateOp update) |
<T extends Document> |
SynchronizingDocumentStoreWrapper.findAndUpdate(Collection<T> collection,
UpdateOp update) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
LoggingDocumentStoreWrapper.create(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
TimingDocumentStoreWrapper.create(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
LeaseCheckDocumentStoreWrapper.create(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
SynchronizingDocumentStoreWrapper.create(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
LoggingDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
TimingDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
LeaseCheckDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps) |
<T extends Document> |
SynchronizingDocumentStoreWrapper.createOrUpdate(Collection<T> collection,
List<UpdateOp> updateOps) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.