Class FlatFileNodeStoreBuilder
java.lang.Object
org.apache.jackrabbit.oak.index.indexer.document.flatfile.FlatFileNodeStoreBuilder
This class is where the strategy being selected for building FlatFileStore.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value of this system property indicates max memory that should be used if jmx based memory monitoring is not available.static final int
static final String
System property name for sort strategy.static final String
System property to define the existing folder containing the flat file store files -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExistingDataDumpDir
(File existingDataDumpDir) build()
build
(IndexHelper indexHelper, List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) buildList
(IndexHelper indexHelper, IndexerSupport indexerSupport, List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) buildTreeStoreForIndexing
(IndexHelper indexHelper, File file) Returns the flat file store dir.withAheadOfTimeBlobDownloader
(boolean aotSupportEnabled) NOTE: This enables the support for AOT blob download, it does not turn activate it.withBlobStore
(BlobStore blobStore) withCheckpoint
(String checkpoint) withIndexDefinitions
(List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) withIndexingReporter
(IndexingReporter reporter) withMinModified
(long minModified) Use the given lower bound of the "_modified" property, when using the document node store.withMongoClientURI
(com.mongodb.MongoClientURI mongoClientURI) withMongoDocumentStore
(MongoDocumentStore mongoDocumentStore) withNodeStore
(DocumentNodeStore nodeStore) withPathPredicate
(Predicate<String> pathPredicate) withPreferredPathElements
(Set<String> preferredPathElements) withRootRevision
(RevisionVector rootRevision) withStatisticsProvider
(StatisticsProvider statisticsProvider)
-
Field Details
-
OAK_INDEXER_SORT_STRATEGY_TYPE
System property name for sort strategy. Allowed values are the values from enumFlatFileNodeStoreBuilder.SortStrategyType
- See Also:
-
OAK_INDEXER_SORTED_FILE_PATH
System property to define the existing folder containing the flat file store files- See Also:
-
OAK_INDEXER_MAX_SORT_MEMORY_IN_GB
Value of this system property indicates max memory that should be used if jmx based memory monitoring is not available.- See Also:
-
OAK_INDEXER_MAX_SORT_MEMORY_IN_GB_DEFAULT
public static final int OAK_INDEXER_MAX_SORT_MEMORY_IN_GB_DEFAULT- See Also:
-
-
Constructor Details
-
FlatFileNodeStoreBuilder
-
-
Method Details
-
withBlobStore
-
withPreferredPathElements
-
addExistingDataDumpDir
-
withNodeStateEntryTraverserFactory
public FlatFileNodeStoreBuilder withNodeStateEntryTraverserFactory(NodeStateEntryTraverserFactory factory) -
withPathPredicate
-
withIndexDefinitions
public FlatFileNodeStoreBuilder withIndexDefinitions(List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) -
withRootRevision
-
withNodeStore
-
withMongoDocumentStore
-
withCheckpoint
-
withMinModified
Use the given lower bound of the "_modified" property, when using the document node store.- Parameters:
minModified
- the minimum value of the "_modified" property- Returns:
- this
-
withMongoClientURI
-
withStatisticsProvider
-
withIndexingReporter
-
withAheadOfTimeBlobDownloader
NOTE: This enables the support for AOT blob download, it does not turn activate it. To activate it, set the property AheadOfTimeBlobDownloadingFlatFileStore.OAK_INDEXER_BLOB_PREFETCH_BINARY_NODES_SUFFIX to a non-empty value AND enable the support here.- Parameters:
aotSupportEnabled
-
-
build
- Throws:
IOException
CompositeException
-
build
public IndexStore build(IndexHelper indexHelper, List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) throws IOException, CompositeException - Throws:
IOException
CompositeException
-
buildTreeStoreForIndexing
-
buildList
public List<IndexStore> buildList(IndexHelper indexHelper, IndexerSupport indexerSupport, List<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) throws IOException, CompositeException - Throws:
IOException
CompositeException
-
getFlatFileStoreDir
Returns the flat file store dir. NOTE - Only works after flat file store dir has been built (i.e. after a call tobuild()
- Returns:
- flat file store dir or
null
if it has not been built
-