Package org.elasticsearch.ingest
Class ConditionalProcessor
- java.lang.Object
-
- org.elasticsearch.ingest.AbstractProcessor
-
- org.elasticsearch.ingest.ConditionalProcessor
-
- All Implemented Interfaces:
Processor
public class ConditionalProcessor extends AbstractProcessor
-
-
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
tag
-
-
Method Summary
Modifier and Type Method Description IngestDocument
execute(IngestDocument ingestDocument)
Introspect and potentially modify the incoming data.java.lang.String
getType()
Gets the type of a processor-
Methods inherited from class org.elasticsearch.ingest.AbstractProcessor
getTag
-
-
-
-
Method Detail
-
execute
public IngestDocument execute(IngestDocument ingestDocument) throws java.lang.Exception
Description copied from interface:Processor
Introspect and potentially modify the incoming data.- Returns:
- If
null
is returned then the current document will be dropped and not be indexed, otherwise this document will be kept and indexed - Throws:
java.lang.Exception
-
getType
public java.lang.String getType()
Description copied from interface:Processor
Gets the type of a processor
-
-