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.SecondaryStoreRootObserver
NOOP
-
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 void
contentChanged(@NotNull AbstractDocumentNodeState root)
@Nullable AbstractDocumentNodeState
getDocumentNodeState(Path path, RevisionVector rootRevision, RevisionVector lastRev)
Get the node for the given path and revision.boolean
isCached(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:DocumentNodeStateCache
Get the node for the given path and revision.- Specified by:
getDocumentNodeState
in 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
null
would be returned
-
isCached
public boolean isCached(Path path)
Description copied from interface:DocumentNodeStateCache
Determines if given path is cached by this implementation- Specified by:
isCached
in interfaceDocumentNodeStateCache
- Parameters:
path
- path to check- Returns:
- true if given path is cached
-
contentChanged
public void contentChanged(@NotNull @NotNull AbstractDocumentNodeState root)
-
-