public class LocalDiffCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalDiffCache.Diff |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public 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.