Package org.elasticsearch.ingest
Class CompoundProcessor
java.lang.Object
org.elasticsearch.ingest.CompoundProcessor
- All Implemented Interfaces:
Processor
A Processor that executes a list of other "processors". It executes a separate list of
"onFailureProcessors" when any of the processors throw an
Exception
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.ingest.Processor
Processor.Factory, Processor.Parameters
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCompoundProcessor(boolean ignoreFailure, List<Processor> processors, List<Processor> onFailureProcessors)
CompoundProcessor(Processor... processor)
-
Method Summary
Modifier and TypeMethodDescriptionexecute(IngestDocument ingestDocument)
Introspect and potentially modify the incoming data.void
execute(IngestDocument ingestDocument, BiConsumer<IngestDocument,Exception> handler)
Introspect and potentially modify the incoming data.Gets the description of a processor.getTag()
Gets the tag of a processor.getType()
Gets the type of a processorboolean
-
Field Details
-
ON_FAILURE_MESSAGE_FIELD
- See Also:
- Constant Field Values
-
ON_FAILURE_PROCESSOR_TYPE_FIELD
- See Also:
- Constant Field Values
-
ON_FAILURE_PROCESSOR_TAG_FIELD
- See Also:
- Constant Field Values
-
ON_FAILURE_PIPELINE_FIELD
- See Also:
- Constant Field Values
-
-
Constructor Details
-
CompoundProcessor
-
CompoundProcessor
-
-
Method Details
-
isIgnoreFailure
public boolean isIgnoreFailure() -
getOnFailureProcessors
-
getProcessors
-
flattenProcessors
-
getType
Description copied from interface:Processor
Gets the type of a processor -
getTag
Description copied from interface:Processor
Gets the tag of a processor. -
getDescription
Description copied from interface:Processor
Gets the description of a processor.- Specified by:
getDescription
in interfaceProcessor
-
execute
Description copied from interface:Processor
Introspect and potentially modify the incoming data. -
execute
Description copied from interface:Processor
Introspect and potentially modify the incoming data. Expert method: only override this method if a processor implementation needs to make an asynchronous call, otherwise just overwriteProcessor.execute(IngestDocument)
.
-