Package org.elasticsearch.ingest
Class TestProcessor
java.lang.Object
org.elasticsearch.ingest.TestProcessor
- All Implemented Interfaces:
Processor
public class TestProcessor extends java.lang.Object implements Processor
Processor used for testing, keeps track of how many times it is invoked and
accepts a
Consumer
of IngestDocument
to be called when executed.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestProcessor.Factory
Nested classes/interfaces inherited from interface org.elasticsearch.ingest.Processor
Processor.Parameters
-
Constructor Summary
Constructors Constructor Description TestProcessor(java.lang.RuntimeException e)
TestProcessor(java.lang.String tag, java.lang.String type, java.lang.RuntimeException e)
TestProcessor(java.lang.String tag, java.lang.String type, java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
TestProcessor(java.lang.String tag, java.lang.String type, java.util.function.Function<IngestDocument,IngestDocument> ingestDocumentMapper)
TestProcessor(java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
-
Method Summary
Modifier and Type Method Description IngestDocument
execute(IngestDocument ingestDocument)
int
getInvokedCounter()
java.lang.String
getTag()
java.lang.String
getType()
-
Constructor Details
-
TestProcessor
-
TestProcessor
public TestProcessor(java.lang.RuntimeException e) -
TestProcessor
public TestProcessor(java.lang.String tag, java.lang.String type, java.lang.RuntimeException e) -
TestProcessor
public TestProcessor(java.lang.String tag, java.lang.String type, java.util.function.Consumer<IngestDocument> ingestDocumentConsumer) -
TestProcessor
public TestProcessor(java.lang.String tag, java.lang.String type, java.util.function.Function<IngestDocument,IngestDocument> ingestDocumentMapper)
-
-
Method Details
-
execute
-
getType
public java.lang.String getType() -
getTag
public java.lang.String getTag() -
getInvokedCounter
public int getInvokedCounter()
-