Class UniqueIndexNodeStoreChecker
java.lang.Object
org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker
- All Implemented Interfaces:
MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
public class UniqueIndexNodeStoreChecker
extends Object
implements MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
Checker that ensures the consistency of unique entries in the various mounts
For all unique indexes, it checks that the uniqueness constraint holds when taking into account the combined index from all the mounts, including the global one.
Being a one-off check, it does not strictly implement the check(MountedNodeStore, Tree, ErrorHolder, Context)
contract in terms of navigating the specified tree, but instead accesses the index definitions node directly
on first access and skips all subsequent executions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
check
(MountedNodeStore mountedStore, Tree tree, org.apache.jackrabbit.oak.composite.checks.ErrorHolder errorHolder, org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context context) org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context
createContext
(NodeStore globalStore, MountInfoProvider mip)
-
Constructor Details
-
UniqueIndexNodeStoreChecker
public UniqueIndexNodeStoreChecker()
-
-
Method Details
-
createContext
public org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context createContext(NodeStore globalStore, MountInfoProvider mip) - Specified by:
createContext
in interfaceMountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
-
check
public boolean check(MountedNodeStore mountedStore, Tree tree, org.apache.jackrabbit.oak.composite.checks.ErrorHolder errorHolder, org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context context) - Specified by:
check
in interfaceMountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
-