Interface IndexEditorProvider
-
- All Known Implementing Classes:
CompositeIndexEditorProvider,LuceneIndexEditorProvider,OrderedPropertyIndexEditorProvider,PropertyIndexEditorProvider,ReferenceEditorProvider,WhiteboardIndexEditorProvider
public interface IndexEditorProviderExtension point for plugging in different kinds of IndexEditor providers.- See Also:
IndexEditor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable EditorgetIndexEditor(@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.
-
-
-
Method Detail
-
getIndexEditor
@Nullable @Nullable Editor getIndexEditor(@NotNull @NotNull java.lang.String type, @NotNull @NotNull NodeBuilder definition, @NotNull @NotNull NodeState root, @NotNull @NotNull IndexUpdateCallback callback) throws CommitFailedException
Each provider knows how to produce a certain type of index. If thetypeparam is of an unknown value, the provider is expected to returnnull.The
definitionbuilder must points to the index definition node under which the indexer is expected to store the index content.The
callbackinstance may be of typeContextAwareCallbackand that can be used to accessIndexingContext- 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
nullif type is unknown - Throws:
CommitFailedException
-
-