Class SecondaryStoreCache
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreCache
-
- All Implemented Interfaces:
DocumentNodeStateCache
public class SecondaryStoreCache extends Object implements DocumentNodeStateCache
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.jackrabbit.oak.plugins.document.secondary.SecondaryStoreRootObserverNOOP-
Fields inherited from interface org.apache.jackrabbit.oak.plugins.document.DocumentNodeStateCache
NOOP
-
-
Constructor Summary
Constructors Constructor Description SecondaryStoreCache(NodeStore nodeStore, NodeStateDiffer differ, PathFilter pathFilter, StatisticsProvider statisticsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontentChanged(@NotNull AbstractDocumentNodeState root)@Nullable AbstractDocumentNodeStategetDocumentNodeState(Path path, RevisionVector rootRevision, RevisionVector lastRev)Get the node for the given path and revision.booleanisCached(Path path)Determines if given path is cached by this implementation
-
-
-
Constructor Detail
-
SecondaryStoreCache
public SecondaryStoreCache(NodeStore nodeStore, NodeStateDiffer differ, PathFilter pathFilter, StatisticsProvider statisticsProvider)
-
-
Method Detail
-
getDocumentNodeState
@Nullable public @Nullable AbstractDocumentNodeState getDocumentNodeState(Path path, RevisionVector rootRevision, RevisionVector lastRev)
Description copied from interface:DocumentNodeStateCacheGet the node for the given path and revision.- Specified by:
getDocumentNodeStatein interfaceDocumentNodeStateCache- Parameters:
path- the path of the node.rootRevision- revision of root NodeStatelastRev- last revision of the node at given path- Returns:
- nodeState at given path or null. If given revision is not present or the
path is not cached then
nullwould be returned
-
isCached
public boolean isCached(Path path)
Description copied from interface:DocumentNodeStateCacheDetermines if given path is cached by this implementation- Specified by:
isCachedin interfaceDocumentNodeStateCache- Parameters:
path- path to check- Returns:
- true if given path is cached
-
contentChanged
public void contentChanged(@NotNull @NotNull AbstractDocumentNodeState root)
-
-