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 CompoundProcessor
decorate(CompoundProcessor compoundProcessor, java.util.List<SimulateProcessorResult> processorResultList)
IngestDocument
execute(IngestDocument ingestDocument)
Introspect and potentially modify the incoming data.void
execute(IngestDocument ingestDocument, java.util.function.BiConsumer<IngestDocument,java.lang.Exception> handler)
Introspect and potentially modify the incoming data.java.lang.String
getTag()
Gets the tag of a processor.java.lang.String
getType()
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: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)
. -
execute
Description copied from interface:Processor
Introspect and potentially modify the incoming data. -
getType
public java.lang.String getType()Description copied from interface:Processor
Gets the type of a processor -
getTag
public java.lang.String getTag()Description copied from interface:Processor
Gets the tag of a processor. -
decorate
public static CompoundProcessor decorate(CompoundProcessor compoundProcessor, java.util.List<SimulateProcessorResult> processorResultList)
-