Class FlatFileNodeStoreBuilder
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.FlatFileNodeStoreBuilder
-
public class FlatFileNodeStoreBuilder extends java.lang.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 java.lang.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 java.lang.String
OAK_INDEXER_SORT_STRATEGY_TYPE
System property name for sort strategy.static java.lang.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(java.io.File workDir)
-
Method Summary
-
-
-
Field Detail
-
OAK_INDEXER_SORT_STRATEGY_TYPE
public static final java.lang.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 java.lang.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 java.lang.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
-
-
Method Detail
-
withBlobStore
public FlatFileNodeStoreBuilder withBlobStore(BlobStore blobStore)
-
withPreferredPathElements
public FlatFileNodeStoreBuilder withPreferredPathElements(java.util.Set<java.lang.String> preferredPathElements)
-
addExistingDataDumpDir
public FlatFileNodeStoreBuilder addExistingDataDumpDir(java.io.File existingDataDumpDir)
-
withNodeStateEntryTraverserFactory
public FlatFileNodeStoreBuilder withNodeStateEntryTraverserFactory(NodeStateEntryTraverserFactory factory)
-
withPathPredicate
public FlatFileNodeStoreBuilder withPathPredicate(java.util.function.Predicate<java.lang.String> pathPredicate)
-
withIndexDefinitions
public FlatFileNodeStoreBuilder withIndexDefinitions(java.util.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(java.lang.String checkpoint)
-
withMongoDatabase
public FlatFileNodeStoreBuilder withMongoDatabase(com.mongodb.client.MongoDatabase mongoDatabase)
-
withStatisticsProvider
public FlatFileNodeStoreBuilder withStatisticsProvider(StatisticsProvider statisticsProvider)
-
withIndexingReporter
public FlatFileNodeStoreBuilder withIndexingReporter(IndexingReporter reporter)
-
build
public FlatFileStore build() throws java.io.IOException, CompositeException
- Throws:
java.io.IOException
CompositeException
-
buildList
public java.util.List<FlatFileStore> buildList(IndexHelper indexHelper, IndexerSupport indexerSupport, java.util.Set<org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition> indexDefinitions) throws java.io.IOException, CompositeException
- Throws:
java.io.IOException
CompositeException
-
getFlatFileStoreDir
public java.io.File 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
-
-