Class DocumentStoreIndexerBase

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    DocumentStoreIndexer

    public abstract class DocumentStoreIndexerBase
    extends java.lang.Object
    implements java.io.Closeable
    • Field Detail

      • INDEXER_METRICS_PREFIX

        public static final java.lang.String INDEXER_METRICS_PREFIX
        See Also:
        Constant Field Values
      • METRIC_INDEXING_DURATION_SECONDS

        public static final java.lang.String METRIC_INDEXING_DURATION_SECONDS
        See Also:
        Constant Field Values
      • METRIC_MERGE_NODE_STORE_DURATION_SECONDS

        public static final java.lang.String METRIC_MERGE_NODE_STORE_DURATION_SECONDS
        See Also:
        Constant Field Values
      • METRIC_FULL_INDEX_CREATION_DURATION_SECONDS

        public static final java.lang.String METRIC_FULL_INDEX_CREATION_DURATION_SECONDS
        See Also:
        Constant Field Values
      • closer

        protected final org.apache.jackrabbit.guava.common.io.Closer closer
    • Constructor Detail

    • Method Detail

      • setProviders

        protected void setProviders()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • buildFlatFileStore

        @Deprecated
        public FlatFileStore buildFlatFileStore()
                                         throws java.io.IOException,
                                                CommitFailedException
        Deprecated.
        replaced by buildStore()
        Returns:
        an Instance of FlatFileStore, whose getFlatFileStorePath() method can be used to get the absolute path to this store.
        Throws:
        java.io.IOException
        CommitFailedException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • prepareIndexers

        protected CompositeIndexer prepareIndexers​(NodeStore copyOnWriteStore,
                                                   NodeBuilder builder,
                                                   org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter)
      • createProviders

        protected abstract java.util.List<NodeStateIndexerProvider> createProviders()
                                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • preIndexOperations

        protected abstract void preIndexOperations​(java.util.List<NodeStateIndexer> indexers)