public class CompositeIndexEditorProvider extends java.lang.Object implements IndexEditorProvider
Constructor and Description |
---|
CompositeIndexEditorProvider(IndexEditorProvider... providers) |
Modifier and Type | Method and Description |
---|---|
static @NotNull IndexEditorProvider |
compose(@NotNull java.util.Collection<IndexEditorProvider> providers) |
Editor |
getIndexEditor(@NotNull java.lang.String type,
@NotNull NodeBuilder builder,
@NotNull NodeState root,
@NotNull IndexUpdateCallback callback)
Each provider knows how to produce a certain type of index.
|
public CompositeIndexEditorProvider(IndexEditorProvider... providers)
@NotNull public static @NotNull IndexEditorProvider compose(@NotNull @NotNull java.util.Collection<IndexEditorProvider> providers)
public Editor getIndexEditor(@NotNull @NotNull java.lang.String type, @NotNull @NotNull NodeBuilder builder, @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 typebuilder
- 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
Copyright © 2010 - 2020 Adobe. All Rights Reserved