| 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 |
|---|---|
static DocumentStoreException |
DocumentStoreException.asDocumentStoreException(String message,
Throwable t,
DocumentStoreException.Type type,
Iterable<String> ids)
Converts the given
Throwable into a DocumentStoreException. |
static DocumentStoreException |
DocumentStoreException.convert(@NotNull Throwable t)
|
static DocumentStoreException |
DocumentStoreException.convert(@NotNull Throwable t,
Iterable<String> ids)
|
static DocumentStoreException |
DocumentStoreException.convert(@NotNull Throwable t,
String msg)
|
| 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.
|
<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
UpdateOp.isNew()). |
long |
DocumentStore.determineServerTimeDifferenceMillis() |
<T extends Document> |
DocumentStore.find(Collection<T> collection,
String key)
Get the document with the given
key. |
<T extends Document> |
DocumentStore.find(Collection<T> collection,
String key,
int maxCacheAge)
Get the document with the
key. |
<T extends Document> |
DocumentStore.findAndUpdate(Collection<T> collection,
UpdateOp update)
Performs a conditional update (e.g.
|
void |
ClusterNodeInfo.performLeaseCheck()
Checks if the lease for this cluster node is still valid, otherwise
throws a
DocumentStoreException. |
<T extends Document> |
DocumentStore.query(Collection<T> collection,
String fromKey,
String toKey,
int limit)
Get a list of documents where the key is greater than a start value and
less than an end value.
|
<T extends Document> |
DocumentStore.query(Collection<T> collection,
String fromKey,
String toKey,
String indexedProperty,
long startValue,
int limit)
Get a list of documents where the key is greater than a start value and
less than an end value and the given "indexed property" is greater
or equals the specified value.
|
int |
LastRevRecoveryAgent.recover(int clusterId)
Same as
LastRevRecoveryAgent.recover(int, long), but does not wait for ongoing
recovery. |
int |
LastRevRecoveryAgent.recover(int clusterId,
long waitUntil)
Recover the correct _lastRev updates for potentially missing candidate
nodes.
|
int |
LastRevRecoveryAgent.recover(Iterable<NodeDocument> suspects,
int clusterId)
|
int |
LastRevRecoveryAgent.recover(Iterable<NodeDocument> suspects,
int clusterId,
boolean dryRun)
Recover the correct _lastRev updates for the given candidate nodes.
|
<T extends Document> |
DocumentStore.remove(Collection<T> collection,
List<String> keys)
Batch remove documents with given keys.
|
<T extends Document> |
DocumentStore.remove(Collection<T> collection,
Map<String,Long> toRemove)
Batch remove documents with given keys and corresponding equal conditions
on
NodeDocument.MODIFIED_IN_SECS values. |
<T extends Document> |
DocumentStore.remove(Collection<T> collection,
String key)
Remove a document.
|
<T extends Document> |
DocumentStore.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue)
Batch remove documents where the given "indexed property" is within the given
range (exclusive) -
(startValue, endValue). |
boolean |
ClusterNodeInfo.renewLease()
Renew the cluster id lease.
|
static @NotNull FormatVersion |
FormatVersion.versionOf(@NotNull DocumentStore store)
Reads the
FormatVersion from the given store. |
boolean |
FormatVersion.writeTo(@NotNull DocumentStore store)
Writes this version to the given document store.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Document> |
MemoryDocumentStore.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue) |
| 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) |
<T extends Document> |
MongoDocumentStore.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue) |
| Modifier and Type | Class and Description |
|---|---|
protected class |
RDBDocumentStore.UnsupportedIndexedPropertyException |
| Modifier and Type | Method and Description |
|---|---|
static DocumentStoreException |
RDBJDBCTools.asDocumentStoreException(@NotNull Exception cause,
@NotNull String message) |
| Modifier and Type | Method and Description |
|---|---|
int |
RDBDocumentStoreJDBC.deleteWithCondition(Connection connection,
org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd,
List<RDBDocumentStore.QueryCondition> conditions) |
<T extends Document> |
RDBDocumentSerializer.fromRow(@NotNull Collection<T> collection,
@NotNull RDBRow row)
|
<T extends Document> |
RDBDocumentStore.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utils.checkRevisionAge(DocumentStore store,
ClusterNodeInfo info,
org.apache.jackrabbit.oak.stats.Clock clock)
Check the revision age on the root document for the given cluster node
info.
|
<T extends Document> |
LoggingDocumentStoreWrapper.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue) |
<T extends Document> |
TimingDocumentStoreWrapper.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue) |
<T extends Document> |
LeaseCheckDocumentStoreWrapper.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue) |
<T extends Document> |
SynchronizingDocumentStoreWrapper.remove(Collection<T> collection,
String indexedProperty,
long startValue,
long endValue) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.