@Service(value=MountedNodeStoreChecker.class) public class UniqueIndexNodeStoreChecker extends java.lang.Object implements MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
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 and Description |
---|
UniqueIndexNodeStoreChecker() |
Modifier and Type | Method and 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) |
public org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context createContext(NodeStore globalStore, MountInfoProvider mip)
createContext
in interface MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
public boolean check(MountedNodeStore mountedStore, Tree tree, org.apache.jackrabbit.oak.composite.checks.ErrorHolder errorHolder, org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context context)
check
in interface MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>
Copyright © 2010 - 2020 Adobe. All Rights Reserved