Package org.elasticsearch.ingest
Class ConditionalProcessor
java.lang.Object
org.elasticsearch.ingest.AbstractProcessor
org.elasticsearch.ingest.ConditionalProcessor
- All Implemented Interfaces:
Processor,WrappingProcessor
public class ConditionalProcessor extends AbstractProcessor implements WrappingProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.ingest.Processor
Processor.Factory, Processor.Parameters -
Field Summary
Fields inherited from class org.elasticsearch.ingest.AbstractProcessor
description, tag -
Method Summary
Modifier and Type Method Description 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.StringgetCondition()ProcessorgetInnerProcessor()Method for retrieving the inner processor from a wrapped processor.java.lang.StringgetType()Gets the type of a processorMethods inherited from class org.elasticsearch.ingest.AbstractProcessor
getDescription, getTagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.ingest.Processor
getDescription, getTag
-
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. -
getInnerProcessor
Description copied from interface:WrappingProcessorMethod for retrieving the inner processor from a wrapped processor.- Specified by:
getInnerProcessorin interfaceWrappingProcessor- Returns:
- the inner processor
-
getType
public java.lang.String getType()Description copied from interface:ProcessorGets the type of a processor -
getCondition
public java.lang.String getCondition()
-