| Package | Description |
|---|---|
| org.apache.jackrabbit.oak.plugins.document | |
| org.apache.jackrabbit.oak.plugins.document.cache | |
| 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 | Field and Description |
|---|---|
static NodeDocument |
NodeDocument.NULL
Marker document, which indicates the document does not exist.
|
| Modifier and Type | Field and Description |
|---|---|
static Collection<NodeDocument> |
Collection.NODES
The 'nodes' collection.
|
protected Iterable<NodeDocument> |
SplitDocumentCleanUp.splitDocGarbage |
| Modifier and Type | Method and Description |
|---|---|
static NodeDocument |
NodeDocument.fromString(DocumentStore store,
String s) |
NodeDocument |
MissingLastRevSeeker.getRoot() |
| Modifier and Type | Method and Description |
|---|---|
Cache<org.apache.jackrabbit.oak.cache.CacheValue,NodeDocument> |
DocumentNodeStoreBuilder.buildDocumentCache(DocumentStore docStore) |
Cache<StringValue,NodeDocument> |
DocumentNodeStoreBuilder.buildPrevDocumentsCache(DocumentStore docStore) |
Iterator<NodeDocument> |
BlobReferenceIterator.getIteratorOverDocsWithBinaries()
Override this document to use a document store specific iterator.
|
Iterable<NodeDocument> |
VersionGCSupport.getPossiblyDeletedDocs(long fromModified,
long toModified)
Returns documents that have a
MODIFIED_IN_SECS value
within the given range and the DELETED set to
true. |
protected Iterable<NodeDocument> |
VersionGCSupport.identifyGarbage(Set<NodeDocument.SplitDocType> gcTypes,
RevisionVector sweepRevs,
long oldestRevTimeStamp) |
| Modifier and Type | Method and Description |
|---|---|
void |
BlobCollector.collect(NodeDocument doc,
Collection<org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob> blobs) |
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.
|
protected static boolean |
VersionGCSupport.isDefaultNoBranchSplitNewerThan(NodeDocument doc,
RevisionVector sweepRevs)
Returns
true if the given document is of type
NodeDocument.SplitDocType.DEFAULT_NO_BRANCH and the most recent change on the
document is newer than the sweepRevs. |
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
SplitDocumentCleanUp(DocumentStore store,
VersionGarbageCollector.VersionGCStats stats,
Iterable<NodeDocument> splitDocGarbage) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull NodeDocument |
NodeDocumentCache.get(@NotNull String key,
@NotNull Callable<NodeDocument> valueLoader)
Return the document matching given key, optionally loading it from an
external source.
|
@Nullable NodeDocument |
NodeDocumentCache.getIfPresent(@NotNull String key)
Return the cached value or null.
|
@NotNull NodeDocument |
NodeDocumentCache.putIfAbsent(@NotNull NodeDocument doc)
Puts document into cache iff no entry with the given key is cached
already.
|
@NotNull NodeDocument |
NodeDocumentCache.putIfNewer(@NotNull NodeDocument doc)
Puts document into cache iff no entry with the given key is cached
already or the cached document is older (has smaller
Document.MOD_COUNT). |
| Modifier and Type | Method and Description |
|---|---|
Iterable<NodeDocument> |
NodeDocumentCache.values() |
| Modifier and Type | Method and Description |
|---|---|
void |
NodeDocumentCache.put(@NotNull NodeDocument doc)
Puts document into cache.
|
@NotNull NodeDocument |
NodeDocumentCache.putIfAbsent(@NotNull NodeDocument doc)
Puts document into cache iff no entry with the given key is cached
already.
|
@NotNull NodeDocument |
NodeDocumentCache.putIfNewer(@NotNull NodeDocument doc)
Puts document into cache iff no entry with the given key is cached
already or the cached document is older (has smaller
Document.MOD_COUNT). |
protected void |
NodeDocumentCache.putInternal(@NotNull NodeDocument doc)
Puts a document into the cache without acquiring a lock.
|
protected void |
NodeDocumentCache.putInternal(@NotNull NodeDocument doc,
@Nullable CacheChangesTracker trackerToSkip)
Puts a document into the cache without acquiring a lock.
|
void |
NodeDocumentCache.replaceCachedDocument(@NotNull NodeDocument oldDoc,
@NotNull NodeDocument newDoc)
Replaces the cached value if the old document is currently present in
the cache.
|
void |
NodeDocumentCache.replaceCachedDocument(@NotNull NodeDocument oldDoc,
@NotNull NodeDocument newDoc)
Replaces the cached value if the old document is currently present in
the cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NodeDocumentCache.putNonConflictingDocs(CacheChangesTracker tracker,
Iterable<NodeDocument> docs)
Updates the cache with all the documents that:
(1) currently have their older versions in the cache or
(2) have been neither put nor invalidated during the tracker lifetime.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<NodeDocument> |
MongoBlobReferenceIterator.getIteratorOverDocsWithBinaries() |
CloseableIterable<NodeDocument> |
MongoVersionGCSupport.getPossiblyDeletedDocs(long fromModified,
long toModified) |
protected Iterable<NodeDocument> |
MongoVersionGCSupport.identifyGarbage(Set<NodeDocument.SplitDocType> gcTypes,
RevisionVector sweepRevs,
long oldestRevTimeStamp) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<NodeDocument> |
RDBBlobReferenceIterator.getIteratorOverDocsWithBinaries() |
Iterable<NodeDocument> |
RDBVersionGCSupport.getPossiblyDeletedDocs(long fromModified,
long toModified) |
protected Iterable<NodeDocument> |
RDBVersionGCSupport.identifyGarbage(Set<NodeDocument.SplitDocType> gcTypes,
RevisionVector sweepRevs,
long oldestRevTimeStamp) |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull NodeDocument |
Utils.getRootDocument(@NotNull DocumentStore store)
Returns the root node document of the given document store.
|
| Modifier and Type | Method and Description |
|---|---|
static Iterable<NodeDocument> |
Utils.getAllDocuments(DocumentStore store)
Returns an
Iterable over all NodeDocuments in the given
store. |
static Iterable<NodeDocument> |
Utils.getSelectedDocuments(DocumentStore store,
String indexedProperty,
long startValue)
Like
Utils.getSelectedDocuments(DocumentStore, String, long, int) with
a default batchSize. |
static Iterable<NodeDocument> |
Utils.getSelectedDocuments(DocumentStore store,
String indexedProperty,
long startValue,
int batchSize)
Returns an
Iterable over all NodeDocuments in the given
store matching a condition on an indexed property. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utils.alignWithExternalRevisions(@NotNull NodeDocument rootDoc,
@NotNull org.apache.jackrabbit.oak.stats.Clock clock,
int clusterId)
Makes sure the current time is after the most recent external revision
timestamp in the _lastRev map of the given root document.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.