Class PropertyIndexEditorProvider
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditorProvider
-
- All Implemented Interfaces:
IndexEditorProvider
public class PropertyIndexEditorProvider extends java.lang.Object implements IndexEditorProvider
Service that provides PropertyIndex based editors.- See Also:
PropertyIndexEditor
,IndexEditorProvider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE
-
Constructor Summary
Constructors Constructor Description PropertyIndexEditorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.PropertyIndexEditorProvider
with(MountInfoProvider mountInfoProvider)
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIndexEditor
public Editor getIndexEditor(@NotNull @NotNull java.lang.String type, @NotNull @NotNull NodeBuilder definition, @NotNull @NotNull NodeState root, @NotNull @NotNull IndexUpdateCallback callback)
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
-
with
public PropertyIndexEditorProvider with(MountInfoProvider mountInfoProvider)
-
-