public class LuceneIndexEditor extends java.lang.Object implements IndexEditor, org.apache.jackrabbit.oak.plugins.index.search.Aggregate.AggregateRoot
IndexEditor implementation that is responsible for keeping the
LuceneIndex up to dateLuceneIndex| Modifier and Type | Method and Description |
|---|---|
Editor |
childNodeAdded(java.lang.String name,
NodeState after)
Processes an added child node.
|
Editor |
childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
Processes a changed child node.
|
Editor |
childNodeDeleted(java.lang.String name,
NodeState before)
Processes a deleted child node.
|
void |
enter(NodeState before,
NodeState after)
Called before the given before and after states are compared.
|
java.lang.String |
getPath() |
void |
leave(NodeState before,
NodeState after)
Called after the given before and after states are compared.
|
void |
markDirty() |
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.
|
public java.lang.String getPath()
getPath in interface org.apache.jackrabbit.oak.plugins.index.search.Aggregate.AggregateRootpublic 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 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)
EditorpropertyAdded in interface Editorafter - the added propertypublic void propertyChanged(PropertyState before, PropertyState after)
EditorpropertyChanged in interface Editorbefore - the original propertyafter - the changed propertypublic void propertyDeleted(PropertyState before)
EditorpropertyDeleted in interface Editorbefore - the removed propertypublic Editor childNodeAdded(java.lang.String name, NodeState after)
EditorchildNodeAdded in interface Editorname - name of the added nodeafter - the added child nodenull if the subtree does not need processingpublic Editor childNodeChanged(java.lang.String name, NodeState before, NodeState after)
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 processingpublic 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 markDirty()
markDirty in interface org.apache.jackrabbit.oak.plugins.index.search.Aggregate.AggregateRootCopyright © 2010 - 2023 Adobe. All Rights Reserved