Class IncrementalFlatFileStoreEditor
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.incrementalstore.IncrementalFlatFileStoreEditor
-
-
Constructor Summary
Constructors Constructor Description IncrementalFlatFileStoreEditor(BufferedWriter bufferedWriter, IncrementalFlatFileStoreNodeStateEntryWriter entryWriter, Predicate<String> predicate, IncrementalFlatFileStoreStrategy incrementalFlatFileStoreStrategy, long maxDurationSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable EditorchildNodeAdded(String name, NodeState after)Processes an added child node.@Nullable EditorchildNodeChanged(String name, NodeState before, NodeState after)Processes a changed child node.@Nullable EditorchildNodeDeleted(String name, NodeState before)Processes a deleted child node.voidenter(NodeState before, NodeState after)Called before the given before and after states are compared.voidleave(NodeState before, NodeState after)Called after the given before and after states are compared.voidpropertyAdded(PropertyState after)Processes an added property.voidpropertyChanged(PropertyState before, PropertyState after)Processes a changed property.voidpropertyDeleted(PropertyState before)Processes a removed property.
-
-
-
Constructor Detail
-
IncrementalFlatFileStoreEditor
public IncrementalFlatFileStoreEditor(BufferedWriter bufferedWriter, IncrementalFlatFileStoreNodeStateEntryWriter entryWriter, Predicate<String> predicate, IncrementalFlatFileStoreStrategy incrementalFlatFileStoreStrategy, long maxDurationSeconds)
-
-
Method Detail
-
enter
public void enter(NodeState before, NodeState after)
Description copied from interface:EditorCalled before the given before and after states are compared. The implementation can use this method to initialize any internal state needed for processing the results of the comparison. For example an implementation could look up the effective node type of the after state to know what constraints to apply to on the content changes.
-
leave
public void leave(NodeState before, NodeState after)
Description copied from interface:EditorCalled after the given before and after states are compared. The implementation can use this method to post-process information collected during the content diff. For example an implementation that during the diff just recorded the fact that this node was modified in some way could then use this method to trigger an index update based on that modification flag.
-
propertyAdded
public void propertyAdded(PropertyState after)
Description copied from interface:EditorProcesses an added property.- Specified by:
propertyAddedin interfaceEditor- Parameters:
after- the added property
-
propertyChanged
public void propertyChanged(PropertyState before, PropertyState after)
Description copied from interface:EditorProcesses a changed property.- Specified by:
propertyChangedin interfaceEditor- Parameters:
before- the original propertyafter- the changed property
-
propertyDeleted
public void propertyDeleted(PropertyState before)
Description copied from interface:EditorProcesses a removed property.- Specified by:
propertyDeletedin interfaceEditor- Parameters:
before- the removed property
-
childNodeAdded
@Nullable public @Nullable Editor childNodeAdded(String name, NodeState after)
Description copied from interface:EditorProcesses an added child node.- Specified by:
childNodeAddedin interfaceEditor- Parameters:
name- name of the added nodeafter- the added child node- Returns:
- an editor for processing the subtree below the added node,
or
nullif the subtree does not need processing
-
childNodeChanged
@Nullable public @Nullable Editor childNodeChanged(String name, NodeState before, NodeState after)
Description copied from interface:EditorProcesses a changed child node. This method gets called for all child nodes that may contain changes between the before and after states.- Specified by:
childNodeChangedin interfaceEditor- Parameters:
name- name of the changed nodebefore- child node before the changeafter- child node after the change- Returns:
- an editor for processing the subtree below the added node,
or
nullif the subtree does not need processing
-
childNodeDeleted
@Nullable public @Nullable Editor childNodeDeleted(String name, NodeState before)
Description copied from interface:EditorProcesses a deleted child node.- Specified by:
childNodeDeletedin interfaceEditor- Parameters:
name- name of the deleted nodebefore- the deleted child node- Returns:
- an editor for processing the subtree below the removed node,
or
nullif the subtree does not need processing
-
-