Class LuceneIndexEditorProvider
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider
-
- All Implemented Interfaces:
IndexEditorProvider
public class LuceneIndexEditorProvider extends java.lang.Object implements IndexEditorProvider
Service that provides Lucene basedIndexEditor
s- See Also:
LuceneIndexEditor
,IndexEditorProvider
-
-
Constructor Summary
Constructors Constructor Description LuceneIndexEditorProvider()
LuceneIndexEditorProvider(@Nullable IndexCopier indexCopier)
LuceneIndexEditorProvider(@Nullable IndexCopier indexCopier, @Nullable IndexTracker indexTracker, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache, @Nullable IndexAugmentorFactory augmentorFactory, MountInfoProvider mountInfoProvider)
LuceneIndexEditorProvider(@Nullable IndexCopier indexCopier, @Nullable IndexTracker indexTracker, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache, @Nullable IndexAugmentorFactory augmentorFactory, MountInfoProvider mountInfoProvider, org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.ActiveDeletedBlobCollector activeDeletedBlobCollector, @Nullable LuceneIndexMBean mbean, @Nullable StatisticsProvider statisticsProvider)
LuceneIndexEditorProvider(@Nullable IndexCopier indexCopier, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache)
LuceneIndexEditorProvider(@Nullable IndexCopier indexCopier, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache, @Nullable IndexAugmentorFactory augmentorFactory, MountInfoProvider mountInfoProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache
getExtractedTextCache()
Editor
getIndexEditor(@NotNull java.lang.String type, @NotNull NodeBuilder definition, @NotNull NodeState root, @NotNull IndexUpdateCallback callback)
Each provider knows how to produce a certain type of index.void
setBlobStore(@Nullable GarbageCollectableBlobStore blobStore)
void
setIndexingQueue(org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.IndexingQueue indexingQueue)
void
setInMemoryDocsLimit(int inMemoryDocsLimit)
void
setWriterConfig(org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriterConfig writerConfig)
LuceneIndexEditorProvider
withAsyncIndexesSizeStatsUpdate(AsyncIndexesSizeStatsUpdate asyncIndexesSizeStatsUpdate)
-
-
-
Constructor Detail
-
LuceneIndexEditorProvider
public LuceneIndexEditorProvider()
-
LuceneIndexEditorProvider
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier)
-
LuceneIndexEditorProvider
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache)
-
LuceneIndexEditorProvider
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache, @Nullable @Nullable IndexAugmentorFactory augmentorFactory, MountInfoProvider mountInfoProvider)
-
LuceneIndexEditorProvider
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier, @Nullable @Nullable IndexTracker indexTracker, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache, @Nullable @Nullable IndexAugmentorFactory augmentorFactory, MountInfoProvider mountInfoProvider)
-
LuceneIndexEditorProvider
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier, @Nullable @Nullable IndexTracker indexTracker, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache, @Nullable @Nullable IndexAugmentorFactory augmentorFactory, MountInfoProvider mountInfoProvider, @NotNull org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.ActiveDeletedBlobCollector activeDeletedBlobCollector, @Nullable @Nullable LuceneIndexMBean mbean, @Nullable @Nullable StatisticsProvider statisticsProvider)
-
-
Method Detail
-
withAsyncIndexesSizeStatsUpdate
public LuceneIndexEditorProvider withAsyncIndexesSizeStatsUpdate(AsyncIndexesSizeStatsUpdate asyncIndexesSizeStatsUpdate)
-
getIndexEditor
public Editor getIndexEditor(@NotNull @NotNull java.lang.String type, @NotNull @NotNull NodeBuilder definition, @NotNull @NotNull NodeState root, @NotNull @NotNull IndexUpdateCallback callback) throws CommitFailedException
Description copied from interface:IndexEditorProvider
Each provider knows how to produce a certain type of index. If thetype
param is of an unknown value, the provider is expected to returnnull
.The
definition
builder must points to the index definition node under which the indexer is expected to store the index content.The
callback
instance may be of typeContextAwareCallback
and that can be used to accessIndexingContext
- Specified by:
getIndexEditor
in interfaceIndexEditorProvider
- Parameters:
type
- index typedefinition
- index definition node builder, used for updatesroot
- root node state, used for things like node type informationcallback
- used to register for index update notifications- Returns:
- index update editor, or
null
if type is unknown - Throws:
CommitFailedException
-
getExtractedTextCache
public org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache getExtractedTextCache()
-
setInMemoryDocsLimit
public void setInMemoryDocsLimit(int inMemoryDocsLimit)
-
setBlobStore
public void setBlobStore(@Nullable @Nullable GarbageCollectableBlobStore blobStore)
-
setIndexingQueue
public void setIndexingQueue(org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.IndexingQueue indexingQueue)
-
setWriterConfig
public void setWriterConfig(org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriterConfig writerConfig)
-
-