Class FlatFileNodeStoreBuilder
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.FlatFileNodeStoreBuilder
-
public class FlatFileNodeStoreBuilder extends Object
This class is where the strategy being selected for building FlatFileStore.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FlatFileNodeStoreBuilder.SortStrategyType
-
Field Summary
Fields Modifier and Type Field Description static String
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.static int
OAK_INDEXER_MAX_SORT_MEMORY_IN_GB_DEFAULT
static String
OAK_INDEXER_SORT_STRATEGY_TYPE
System property name for sort strategy.static String
OAK_INDEXER_SORTED_FILE_PATH
System property to define the existing folder containing the flat file store files
-
Constructor Summary
Constructors Constructor Description FlatFileNodeStoreBuilder(File workDir)
-
Method Summary
-
-
-
Field Detail
-
OAK_INDEXER_SORT_STRATEGY_TYPE
public static final String OAK_INDEXER_SORT_STRATEGY_TYPE
System property name for sort strategy. Allowed values are the values from enumFlatFileNodeStoreBuilder.SortStrategyType
- See Also:
- Constant Field Values
-
OAK_INDEXER_SORTED_FILE_PATH
public static final String OAK_INDEXER_SORTED_FILE_PATH
System property to define the existing folder containing the flat file store files- See Also:
- Constant Field Values
-
OAK_INDEXER_MAX_SORT_MEMORY_IN_GB
public static final String 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:
- Constant Field Values
-
OAK_INDEXER_MAX_SORT_MEMORY_IN_GB_DEFAULT
public static final int OAK_INDEXER_MAX_SORT_MEMORY_IN_GB_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FlatFileNodeStoreBuilder
public FlatFileNodeStoreBuilder(File workDir)
-
-
Method Detail
-
withBlobStore
public FlatFileNodeStoreBuilder withBlobStore(BlobStore blobStore)
-
withPreferredPathElements
public FlatFileNodeStoreBuilder withPreferredPathElements(Set<String> preferredPathElements)
-
addExistingDataDumpDir
public FlatFileNodeStoreBuilder addExistingDataDumpDir(File existingDataDumpDir)
-
withNodeStateEntryTraverserFactory
public FlatFileNodeStoreBuilder withNodeStateEntryTraverserFactory(NodeStateEntryTraverserFactory factory)
-
withPathPredicate
public FlatFileNodeStoreBuilder withPathPredicate(Predicate<String> pathPredicate)
-
withIndexDefinitions
public FlatFileNodeStoreBuilder withIndexDefinitions(Set<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions)
-
withRootRevision
public FlatFileNodeStoreBuilder withRootRevision(RevisionVector rootRevision)
-
withNodeStore
public FlatFileNodeStoreBuilder withNodeStore(DocumentNodeStore nodeStore)
-
withMongoDocumentStore
public FlatFileNodeStoreBuilder withMongoDocumentStore(MongoDocumentStore mongoDocumentStore)
-
withCheckpoint
public FlatFileNodeStoreBuilder withCheckpoint(String checkpoint)
-
withMongoClientURI
public FlatFileNodeStoreBuilder withMongoClientURI(com.mongodb.MongoClientURI mongoClientURI)
-
withMongoDatabase
public FlatFileNodeStoreBuilder withMongoDatabase(com.mongodb.client.MongoDatabase mongoDatabase)
-
withStatisticsProvider
public FlatFileNodeStoreBuilder withStatisticsProvider(StatisticsProvider statisticsProvider)
-
withIndexingReporter
public FlatFileNodeStoreBuilder withIndexingReporter(IndexingReporter reporter)
-
withAheadOfTimeBlobDownloader
public FlatFileNodeStoreBuilder withAheadOfTimeBlobDownloader(boolean aotSupportEnabled)
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
-- Returns:
-
build
public IndexStore build() throws IOException, CompositeException
- Throws:
IOException
CompositeException
-
build
public IndexStore build(IndexHelper indexHelper, CompositeIndexer indexer) throws IOException, CompositeException
- Throws:
IOException
CompositeException
-
buildTreeStoreForIndexing
public IndexStore buildTreeStoreForIndexing(IndexHelper indexHelper, File file)
-
buildList
public List<IndexStore> buildList(IndexHelper indexHelper, IndexerSupport indexerSupport, Set<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) throws IOException, CompositeException
- Throws:
IOException
CompositeException
-
-