public class IndexUpdate extends java.lang.Object implements Editor, NodeTraversalCallback.PathSource
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexUpdate.MissingIndexProviderStrategy |
| Constructor and Description |
|---|
IndexUpdate(IndexEditorProvider provider,
java.lang.String async,
NodeState root,
NodeBuilder builder,
IndexUpdateCallback updateCallback) |
IndexUpdate(IndexEditorProvider provider,
java.lang.String async,
NodeState root,
NodeBuilder builder,
IndexUpdateCallback updateCallback,
CommitInfo commitInfo) |
IndexUpdate(IndexEditorProvider provider,
java.lang.String async,
NodeState root,
NodeBuilder builder,
IndexUpdateCallback updateCallback,
NodeTraversalCallback traversalCallback,
CommitInfo commitInfo,
CorruptIndexHandler corruptIndexHandler) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Editor |
childNodeAdded(java.lang.String name,
NodeState after)
Processes an added child node.
|
@NotNull Editor |
childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
Processes a changed child node.
|
@Nullable Editor |
childNodeDeleted(java.lang.String name,
NodeState before)
Processes a deleted child node.
|
void |
commitProgress(IndexCommitCallback.IndexProgress indexProgress) |
void |
enter(NodeState before,
NodeState after)
Called before the given before and after states are compared.
|
java.lang.String |
getIndexingStats() |
java.lang.String |
getPath()
Returns the path of this node, building it lazily when first requested.
|
java.util.List<java.lang.String> |
getReindexStats() |
java.util.Set<java.lang.String> |
getUpdatedIndexPaths() |
boolean |
isReindexingPerformed() |
void |
leave(NodeState before,
NodeState after)
Called after the given before and after states are compared.
|
void |
propertyAdded(PropertyState after)
Processes an added property.
|
void |
propertyChanged(PropertyState before,
PropertyState after)
Processes a changed property.
|
void |
propertyDeleted(PropertyState before)
Processes a removed property.
|
void |
setIgnoreReindexFlags(boolean ignoreReindexFlag) |
void |
setNodeCountEstimator(org.apache.jackrabbit.oak.plugins.index.progress.NodeCountEstimator nodeCountEstimator) |
void |
setTraversalRateEstimator(org.apache.jackrabbit.oak.plugins.index.progress.TraversalRateEstimator estimator) |
IndexUpdate |
withMissingProviderStrategy(IndexUpdate.MissingIndexProviderStrategy missingProvider) |
public IndexUpdate(IndexEditorProvider provider, java.lang.String async, NodeState root, NodeBuilder builder, IndexUpdateCallback updateCallback)
public IndexUpdate(IndexEditorProvider provider, java.lang.String async, NodeState root, NodeBuilder builder, IndexUpdateCallback updateCallback, CommitInfo commitInfo)
public IndexUpdate(IndexEditorProvider provider, java.lang.String async, NodeState root, NodeBuilder builder, IndexUpdateCallback updateCallback, NodeTraversalCallback traversalCallback, CommitInfo commitInfo, CorruptIndexHandler corruptIndexHandler)
public void enter(NodeState before, NodeState after) throws CommitFailedException
Editorenter in interface Editorbefore - before state, non-existent if this node was addedafter - after state, non-existent if this node was removedCommitFailedException - if this commit should be rejectedpublic boolean isReindexingPerformed()
public java.util.List<java.lang.String> getReindexStats()
public java.util.Set<java.lang.String> getUpdatedIndexPaths()
public void setTraversalRateEstimator(org.apache.jackrabbit.oak.plugins.index.progress.TraversalRateEstimator estimator)
public void setNodeCountEstimator(org.apache.jackrabbit.oak.plugins.index.progress.NodeCountEstimator nodeCountEstimator)
public java.lang.String getIndexingStats()
public void setIgnoreReindexFlags(boolean ignoreReindexFlag)
public java.lang.String getPath()
getPath in interface NodeTraversalCallback.PathSourcepublic void leave(NodeState before, NodeState after) throws CommitFailedException
Editorleave in interface Editorbefore - before state, non-existent if this node was addedafter - after state, non-existent if this node was removedCommitFailedException - if this commit should be rejectedpublic void propertyAdded(PropertyState after) throws CommitFailedException
EditorpropertyAdded in interface Editorafter - the added propertyCommitFailedException - if processing failedpublic void propertyChanged(PropertyState before, PropertyState after) throws CommitFailedException
EditorpropertyChanged in interface Editorbefore - the original propertyafter - the changed propertyCommitFailedException - if processing failedpublic void propertyDeleted(PropertyState before) throws CommitFailedException
EditorpropertyDeleted in interface Editorbefore - the removed propertyCommitFailedException - if processing failed@NotNull public @NotNull Editor childNodeAdded(java.lang.String name, NodeState after) throws CommitFailedException
EditorchildNodeAdded in interface Editorname - name of the added nodeafter - the added child nodenull if the subtree does not need processingCommitFailedException - if processing failed@NotNull public @NotNull Editor childNodeChanged(java.lang.String name, NodeState before, NodeState after) throws CommitFailedException
EditorchildNodeChanged in interface Editorname - name of the changed nodebefore - child node before the changeafter - child node after the changenull if the subtree does not need processingCommitFailedException - if processing failed@Nullable public @Nullable Editor childNodeDeleted(java.lang.String name, NodeState before) throws CommitFailedException
EditorchildNodeDeleted in interface Editorname - name of the deleted nodebefore - the deleted child nodenull if the subtree does not need processingCommitFailedException - if processing failedpublic void commitProgress(IndexCommitCallback.IndexProgress indexProgress)
public IndexUpdate withMissingProviderStrategy(IndexUpdate.MissingIndexProviderStrategy missingProvider)
Copyright © 2010 - 2023 Adobe. All Rights Reserved