Class AheadOfTimeBlobDownloadingFlatFileStore

    • Method Detail

      • filterEnabledIndexes

        public static List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> filterEnabledIndexes​(List<String> enabledIndexesPrefixes,
                                                                                                                List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions)
        Returns the indexes for which AOT blob downloading is enabled, that is, for which the index name starts with any of the prefixes in the enabledForIndexes list.
        Parameters:
        enabledIndexesPrefixes - list of prefixes of the index definitions that benefit from the download
        indexDefinitions - the index definitions
        Returns:
        the indexers for which AOT blob download is enabled, or empty list if it is not enabled for any
      • isEnabledForAnyOfIndexes

        public static boolean isEnabledForAnyOfIndexes​(List<String> enableIndexesPrefix,
                                                       List<String> indexPaths)
        Whether blob downloading is needed for any the given indexes.
        Parameters:
        enableIndexesPrefix - list of prefixes of the index definitions that benefit from the download
        indexPaths - the index paths
        Returns:
        true if any of the indexes start with any of the prefixes
      • setEntryCount

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