Package org.elasticsearch.ingest
Class CompoundProcessor
- java.lang.Object
-
- org.elasticsearch.ingest.CompoundProcessor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.ingest.Processor
Processor.Factory, Processor.Parameters
-
-
Field Summary
Fields Modifier and Type Field Description static StringON_FAILURE_MESSAGE_FIELDstatic StringON_FAILURE_PROCESSOR_TAG_FIELDstatic StringON_FAILURE_PROCESSOR_TYPE_FIELD
-
Constructor Summary
Constructors Constructor Description CompoundProcessor(boolean ignoreFailure, List<Processor> processors, List<Processor> onFailureProcessors)CompoundProcessor(Processor... processor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngestDocumentexecute(IngestDocument ingestDocument)Introspect and potentially modify the incoming data.voidexecute(IngestDocument ingestDocument, BiConsumer<IngestDocument,Exception> handler)Introspect and potentially modify the incoming data.List<Processor>flattenProcessors()List<Processor>getOnFailureProcessors()List<Processor>getProcessors()StringgetTag()Gets the tag of a processor.StringgetType()Gets the type of a processorbooleanisIgnoreFailure()
-
-
-
Field Detail
-
ON_FAILURE_MESSAGE_FIELD
public static final String ON_FAILURE_MESSAGE_FIELD
- See Also:
- Constant Field Values
-
ON_FAILURE_PROCESSOR_TYPE_FIELD
public static final String ON_FAILURE_PROCESSOR_TYPE_FIELD
- See Also:
- Constant Field Values
-
ON_FAILURE_PROCESSOR_TAG_FIELD
public static final String ON_FAILURE_PROCESSOR_TAG_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
isIgnoreFailure
public boolean isIgnoreFailure()
-
getType
public String getType()
Description copied from interface:ProcessorGets the type of a processor
-
getTag
public String getTag()
Description copied from interface:ProcessorGets the tag of a processor.
-
execute
public IngestDocument execute(IngestDocument ingestDocument) throws Exception
Description copied from interface:ProcessorIntrospect and potentially modify the incoming data.
-
execute
public void execute(IngestDocument ingestDocument, BiConsumer<IngestDocument,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).
-
-