public class MemoryDiffCache extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
MemoryDiffCache.MemoryEntry |
| Modifier and Type | Field and Description |
|---|---|
protected Cache<PathRev,StringValue> |
diffCache
Diff cache.
|
protected org.apache.jackrabbit.oak.cache.CacheStats |
diffCacheStats |
| Modifier | Constructor and Description |
|---|---|
protected |
MemoryDiffCache(DocumentNodeStoreBuilder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
getChanges(@NotNull RevisionVector from,
@NotNull RevisionVector to,
@NotNull String path,
@Nullable org.apache.jackrabbit.oak.plugins.document.DiffCache.Loader loader)
Returns a jsop diff for the child nodes at the given path.
|
@NotNull Iterable<org.apache.jackrabbit.oak.cache.CacheStats> |
getStats() |
@NotNull org.apache.jackrabbit.oak.plugins.document.DiffCache.Entry |
newEntry(@NotNull RevisionVector from,
@NotNull RevisionVector to,
boolean local)
Starts a new cache entry for the diff cache.
|
protected final Cache<PathRev,StringValue> diffCache
protected final org.apache.jackrabbit.oak.cache.CacheStats diffCacheStats
protected MemoryDiffCache(DocumentNodeStoreBuilder<?> builder)
@Nullable public @Nullable String getChanges(@NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to, @NotNull @NotNull String path, @Nullable @Nullable org.apache.jackrabbit.oak.plugins.document.DiffCache.Loader loader)
^"foo":{}+"bar":{}-"baz"null value indicates that this cache does not have an entry
for the given revision range at the path.from - the from revision.to - the to revision.path - the path of the parent node.loader - an optional loader for the cache entry.null if unknown and no loader was passed.@NotNull public @NotNull org.apache.jackrabbit.oak.plugins.document.DiffCache.Entry newEntry(@NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to, boolean local)
Entry#append(String, String) method.from - the from revision.to - the to revision.local - true indicates that the entry results from a local change,
false if it results from an external change@NotNull public @NotNull Iterable<org.apache.jackrabbit.oak.cache.CacheStats> getStats()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.