Class DocumentStoreIndexerBase
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.DocumentStoreIndexerBase
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
DocumentStoreIndexer
public abstract class DocumentStoreIndexerBase extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected Closercloserstatic StringINDEXER_METRICS_PREFIXprotected IndexerSupportindexerSupportprotected IndexHelperindexHelperstatic StringMETRIC_FULL_INDEX_CREATION_DURATION_SECONDSstatic StringMETRIC_INDEXING_DURATION_SECONDS
-
Constructor Summary
Constructors Constructor Description DocumentStoreIndexerBase(IndexHelper indexHelper, IndexerSupport indexerSupport)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IndexStorebuildFlatFileStore()Deprecated.replaced bybuildStore()IndexStorebuildStore()IndexStorebuildStore(String initialCheckpoint, String finalCheckpoint)IndexStorebuildStore(String initialCheckpoint, String finalCheckpoint, long maxDurationSeconds)IndexStorebuildTreeStore()voidclose()protected abstract NodeStateIndexerProvidercreateProvider()protected abstract voidpreIndexOperations(List<NodeStateIndexer> indexers)protected CompositeIndexerprepareIndexers(NodeStateIndexerProvider indexerProvider, NodeStore copyOnWriteStore, NodeBuilder builder, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter)voidreindex()
-
-
-
Field Detail
-
INDEXER_METRICS_PREFIX
public static final String INDEXER_METRICS_PREFIX
- See Also:
- Constant Field Values
-
METRIC_INDEXING_DURATION_SECONDS
public static final String METRIC_INDEXING_DURATION_SECONDS
- See Also:
- Constant Field Values
-
METRIC_FULL_INDEX_CREATION_DURATION_SECONDS
public static final String METRIC_FULL_INDEX_CREATION_DURATION_SECONDS
- See Also:
- Constant Field Values
-
closer
protected final Closer closer
-
indexHelper
protected final IndexHelper indexHelper
-
indexerSupport
protected final IndexerSupport indexerSupport
-
-
Constructor Detail
-
DocumentStoreIndexerBase
public DocumentStoreIndexerBase(IndexHelper indexHelper, IndexerSupport indexerSupport)
-
-
Method Detail
-
buildTreeStore
public IndexStore buildTreeStore() throws IOException, CommitFailedException
- Throws:
IOExceptionCommitFailedException
-
buildStore
public IndexStore buildStore() throws IOException, CommitFailedException
- Throws:
IOExceptionCommitFailedException
-
buildStore
public IndexStore buildStore(String initialCheckpoint, String finalCheckpoint) throws IOException, CommitFailedException
- Throws:
IOExceptionCommitFailedException
-
buildStore
public IndexStore buildStore(String initialCheckpoint, String finalCheckpoint, long maxDurationSeconds) throws IOException, CommitFailedException
- Throws:
IOExceptionCommitFailedException
-
buildFlatFileStore
@Deprecated public IndexStore buildFlatFileStore() throws IOException, CommitFailedException
Deprecated.replaced bybuildStore()- Returns:
- an Instance of FlatFileStore, whose getFlatFileStorePath() method can be used to get the absolute path to this store.
- Throws:
IOExceptionCommitFailedException
-
reindex
public void reindex() throws CommitFailedException, IOException- Throws:
CommitFailedExceptionIOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
prepareIndexers
protected CompositeIndexer prepareIndexers(NodeStateIndexerProvider indexerProvider, NodeStore copyOnWriteStore, NodeBuilder builder, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter)
-
createProvider
protected abstract NodeStateIndexerProvider createProvider() throws IOException
- Throws:
IOException
-
preIndexOperations
protected abstract void preIndexOperations(List<NodeStateIndexer> indexers)
-
-