Class UniqueIndexNodeStoreChecker
- java.lang.Object
-
- org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker
-
- All Implemented Interfaces:
MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
@Service(MountedNodeStoreChecker.class) public class UniqueIndexNodeStoreChecker extends java.lang.Object implements MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
Checker that ensures the consistency of unique entries in the various mountsFor 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 Constructor Description UniqueIndexNodeStoreChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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)
-
-
-
Method Detail
-
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>
-
-