public class SegmentPropertyIndexEditorProvider extends java.lang.Object implements IndexEditorProvider, java.io.Closeable
Constructor and Description |
---|
SegmentPropertyIndexEditorProvider(java.io.File storeDir) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
@Nullable 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.
|
SegmentPropertyIndexEditorProvider |
with(MountInfoProvider mountInfoProvider) |
public SegmentPropertyIndexEditorProvider(java.io.File storeDir)
@Nullable public @Nullable Editor getIndexEditor(@NotNull @NotNull java.lang.String type, @NotNull @NotNull NodeBuilder definition, @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 typedefinition
- 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
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public SegmentPropertyIndexEditorProvider with(MountInfoProvider mountInfoProvider)
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.