Class 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 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.

    • 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)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UniqueIndexNodeStoreChecker

        public UniqueIndexNodeStoreChecker()
    • Method Detail

      • createContext

        public org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context createContext​(NodeStore globalStore,
                                                                                                            MountInfoProvider mip)
        Specified by:
        createContext in interface MountedNodeStoreChecker<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 interface MountedNodeStoreChecker<org.apache.jackrabbit.oak.composite.checks.UniqueIndexNodeStoreChecker.Context>