Class CompositeIndexEditorProvider
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.CompositeIndexEditorProvider
-
- All Implemented Interfaces:
IndexEditorProvider
public class CompositeIndexEditorProvider extends java.lang.Object implements IndexEditorProvider
Aggregation of a list of editor providers into a single provider.
-
-
Constructor Summary
Constructors Constructor Description CompositeIndexEditorProvider(IndexEditorProvider... providers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull IndexEditorProvidercompose(@NotNull java.util.Collection<IndexEditorProvider> providers)EditorgetIndexEditor(@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.
-
-
-
Constructor Detail
-
CompositeIndexEditorProvider
public CompositeIndexEditorProvider(IndexEditorProvider... providers)
-
-
Method Detail
-
compose
@NotNull public static @NotNull IndexEditorProvider compose(@NotNull @NotNull java.util.Collection<IndexEditorProvider> providers)
-
getIndexEditor
public Editor getIndexEditor(@NotNull @NotNull java.lang.String type, @NotNull @NotNull NodeBuilder builder, @NotNull @NotNull NodeState root, @NotNull @NotNull IndexUpdateCallback callback) throws CommitFailedException
Description copied from interface:IndexEditorProviderEach 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- Specified by:
getIndexEditorin interfaceIndexEditorProvider- Parameters:
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 notifications- Returns:
- index update editor, or
nullif type is unknown - Throws:
CommitFailedException
-
-