Class MemoryDiffCache
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.MemoryDiffCache
-
public class MemoryDiffCache extends java.lang.ObjectAn in-memory diff cache implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMemoryDiffCache.Keyprotected classMemoryDiffCache.MemoryEntry
-
Field Summary
Fields Modifier and Type Field Description protected Cache<org.apache.jackrabbit.oak.cache.CacheValue,StringValue>diffCacheDiff cache.protected org.apache.jackrabbit.oak.cache.CacheStatsdiffCacheStats
-
Constructor Summary
Constructors Modifier Constructor Description protectedMemoryDiffCache(DocumentNodeStoreBuilder<?> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetChanges(@NotNull RevisionVector from, @NotNull RevisionVector to, @NotNull Path path, @Nullable org.apache.jackrabbit.oak.plugins.document.DiffCache.Loader loader)@NotNull java.lang.Iterable<org.apache.jackrabbit.oak.cache.CacheStats>getStats()voidinvalidateAll()@NotNull org.apache.jackrabbit.oak.plugins.document.DiffCache.EntrynewEntry(@NotNull RevisionVector from, @NotNull RevisionVector to, boolean local)
-
-
-
Field Detail
-
diffCache
protected final Cache<org.apache.jackrabbit.oak.cache.CacheValue,StringValue> diffCache
Diff cache. Key: PathRev, value: StringValue
-
diffCacheStats
protected final org.apache.jackrabbit.oak.cache.CacheStats diffCacheStats
-
-
Constructor Detail
-
MemoryDiffCache
protected MemoryDiffCache(DocumentNodeStoreBuilder<?> builder)
-
-
Method Detail
-
getChanges
@Nullable public @Nullable java.lang.String getChanges(@NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to, @NotNull @NotNull Path path, @Nullable @Nullable org.apache.jackrabbit.oak.plugins.document.DiffCache.Loader loader)
-
newEntry
@NotNull public @NotNull org.apache.jackrabbit.oak.plugins.document.DiffCache.Entry newEntry(@NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to, boolean local)
-
getStats
@NotNull public @NotNull java.lang.Iterable<org.apache.jackrabbit.oak.cache.CacheStats> getStats()
-
invalidateAll
public void invalidateAll()
-
-