Class TreeStore

    • Method Detail

      • init

        public void init()
      • setIndexDefinitions

        public void setIndexDefinitions​(Set<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefs)
      • setIncludedPaths

        public void setIncludedPaths​(SortedSet<String> includedPaths)
      • getHighestReadKey

        public String getHighestReadKey()
      • toChildNodeEntry

        public static String toChildNodeEntry​(String path)
        The child node entry for the given path.
        Parameters:
        path - the path, e.g. /hello/world
        Returns:
        the child node entry, e.g. /helloworld
      • toParentAndChildNodeName

        public static String[] toParentAndChildNodeName​(String key)
        Convert a child node entry to parent and node name. This method is used for tooling and testing only. It does the reverse of toChildNodeEntry(parentPath, childName)
        Parameters:
        child - node entry, e.g. /helloworld
        Returns:
        the parent path and the child node name, e.g. ["/hello" "world"]
        Throws:
        IllegalArgumentException - if this is not a child node entry
      • toChildNodeEntry

        public static String toChildNodeEntry​(String parentPath,
                                              String childName)
        The child node entry for the given parent and child.
        Parameters:
        path - the parentPath, e.g. /hello
        childName - the name of the child node, e.g. world
        Returns:
        the child node entry, e.g. /helloworld
      • removeNode

        public void removeNode​(String path)
        Remove a node if it exists.
        Parameters:
        path - the path
      • putNode

        public void putNode​(String path,
                            String json)
        Add or update a node.
        Parameters:
        path - the path
        json - the property data
      • getStore

        public Store getStore()
      • setEntryCount

        public void setEntryCount​(long entryCount)
        Specified by:
        setEntryCount in interface IndexStore
      • setPrefetcher

        public void setPrefetcher​(Prefetcher prefetcher)