public class LuceneIndexEditorProvider extends java.lang.Object implements IndexEditorProvider
IndexEditor
sLuceneIndexEditor
,
IndexEditorProvider
Modifier and Type | Method and 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) |
public LuceneIndexEditorProvider()
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier)
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache)
public LuceneIndexEditorProvider(@Nullable @Nullable IndexCopier indexCopier, org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache, @Nullable @Nullable IndexAugmentorFactory augmentorFactory, MountInfoProvider mountInfoProvider)
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)
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)
public LuceneIndexEditorProvider withAsyncIndexesSizeStatsUpdate(AsyncIndexesSizeStatsUpdate asyncIndexesSizeStatsUpdate)
public Editor getIndexEditor(@NotNull @NotNull java.lang.String type, @NotNull @NotNull NodeBuilder definition, @NotNull @NotNull NodeState root, @NotNull @NotNull IndexUpdateCallback callback) throws CommitFailedException
IndexEditorProvider
type
param is of an unknown value, the provider is expected
to return null
.
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 type ContextAwareCallback
and that can be used to access IndexingContext
getIndexEditor
in interface IndexEditorProvider
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 notificationsnull
if type is unknownCommitFailedException
public org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache getExtractedTextCache()
public void setInMemoryDocsLimit(int inMemoryDocsLimit)
public void setBlobStore(@Nullable @Nullable GarbageCollectableBlobStore blobStore)
public void setIndexingQueue(org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.IndexingQueue indexingQueue)
public void setWriterConfig(org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriterConfig writerConfig)
Copyright © 2010 - 2020 Adobe. All Rights Reserved