Class DocumentStoreIndexerBase
java.lang.Object
org.apache.jackrabbit.oak.index.indexer.document.DocumentStoreIndexerBase
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
DocumentStoreIndexer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Closer
static final String
protected NodeStateIndexerProvider
protected final IndexerSupport
protected final IndexHelper
static final String
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentStoreIndexerBase
(IndexHelper indexHelper, IndexerSupport indexerSupport) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.buildStore
(String initialCheckpoint, String finalCheckpoint) buildStore
(String initialCheckpoint, String finalCheckpoint, long maxDurationSeconds) void
close()
protected abstract NodeStateIndexerProvider
protected abstract void
preIndexOperations
(List<NodeStateIndexer> indexers) protected CompositeIndexer
prepareIndexers
(NodeStore copyOnWriteStore, NodeBuilder builder, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter) void
reindex()
protected void
-
Field Details
-
INDEXER_METRICS_PREFIX
- See Also:
-
METRIC_INDEXING_DURATION_SECONDS
- See Also:
-
METRIC_FULL_INDEX_CREATION_DURATION_SECONDS
- See Also:
-
closer
-
indexHelper
-
indexerProvider
-
indexerSupport
-
-
Constructor Details
-
DocumentStoreIndexerBase
-
-
Method Details
-
setProvider
- Throws:
IOException
-
buildTreeStore
- Throws:
IOException
CommitFailedException
-
buildStore
- Throws:
IOException
CommitFailedException
-
buildStore
public IndexStore buildStore(String initialCheckpoint, String finalCheckpoint) throws IOException, CommitFailedException - Throws:
IOException
CommitFailedException
-
buildStore
public IndexStore buildStore(String initialCheckpoint, String finalCheckpoint, long maxDurationSeconds) throws IOException, CommitFailedException - Throws:
IOException
CommitFailedException
-
buildFlatFileStore
Deprecated.replaced bybuildStore()
- Returns:
- an Instance of FlatFileStore, whose getFlatFileStorePath() method can be used to get the absolute path to this store.
- Throws:
IOException
CommitFailedException
-
reindex
- Throws:
CommitFailedException
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
prepareIndexers
protected CompositeIndexer prepareIndexers(NodeStore copyOnWriteStore, NodeBuilder builder, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter) -
createProvider
- Throws:
IOException
-
preIndexOperations
-
buildStore()