Package org.elasticsearch.ingest
Class TrackingResultProcessor
java.lang.Object
org.elasticsearch.ingest.TrackingResultProcessor
- All Implemented Interfaces:
Processor
public final class TrackingResultProcessor extends java.lang.Object implements Processor
Processor to be used within Simulate API to keep track of processors executed in pipeline.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.ingest.Processor
Processor.Factory, Processor.Parameters -
Method Summary
Modifier and Type Method Description static CompoundProcessordecorate(CompoundProcessor compoundProcessor, ConditionalProcessor parentCondition, java.util.List<SimulateProcessorResult> processorResultList)IngestDocumentexecute(IngestDocument ingestDocument)Introspect and potentially modify the incoming data.voidexecute(IngestDocument ingestDocument, java.util.function.BiConsumer<IngestDocument,java.lang.Exception> handler)Introspect and potentially modify the incoming data.java.lang.StringgetDescription()Gets the description of a processor.java.lang.StringgetTag()Gets the tag of a processor.java.lang.StringgetType()Gets the type of a processor
-
Method Details
-
execute
public void execute(IngestDocument ingestDocument, java.util.function.BiConsumer<IngestDocument,java.lang.Exception> handler)Description copied from interface:ProcessorIntrospect 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). -
execute
Description copied from interface:ProcessorIntrospect and potentially modify the incoming data. -
getType
public java.lang.String getType()Description copied from interface:ProcessorGets the type of a processor -
getTag
public java.lang.String getTag()Description copied from interface:ProcessorGets the tag of a processor. -
getDescription
public java.lang.String getDescription()Description copied from interface:ProcessorGets the description of a processor.- Specified by:
getDescriptionin interfaceProcessor
-
decorate
public static CompoundProcessor decorate(CompoundProcessor compoundProcessor, ConditionalProcessor parentCondition, java.util.List<SimulateProcessorResult> processorResultList)
-