Package org.apache.jackrabbit.oak.index
Class SegmentPropertyIndexEditorProvider
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.SegmentPropertyIndexEditorProvider
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexEditorProvider
public class SegmentPropertyIndexEditorProvider extends Object implements IndexEditorProvider, Closeable
Editor implementation which stores the property index NodeState data in a different SegmentNodeStore used solely for property index storage purpose
-
-
Constructor Summary
Constructors Constructor Description SegmentPropertyIndexEditorProvider(File storeDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()@Nullable EditorgetIndexEditor(@NotNull String type, @NotNull NodeBuilder definition, @NotNull NodeState root, @NotNull IndexUpdateCallback callback)Each provider knows how to produce a certain type of index.SegmentPropertyIndexEditorProviderwith(MountInfoProvider mountInfoProvider)
-
-
-
Constructor Detail
-
SegmentPropertyIndexEditorProvider
public SegmentPropertyIndexEditorProvider(File storeDir)
-
-
Method Detail
-
getIndexEditor
@Nullable public @Nullable Editor getIndexEditor(@NotNull @NotNull String type, @NotNull @NotNull NodeBuilder definition, @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 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
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceIndexEditorProvider- Throws:
IOException
-
with
public SegmentPropertyIndexEditorProvider with(MountInfoProvider mountInfoProvider)
-
-