Package org.elasticsearch.ingest
Class TestProcessor
java.lang.Object
org.elasticsearch.ingest.TestProcessor
- All Implemented Interfaces:
org.elasticsearch.ingest.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 ClassesNested classes/interfaces inherited from interface org.elasticsearch.ingest.Processor
org.elasticsearch.ingest.Processor.Parameters
-
Constructor Summary
ConstructorsConstructorDescriptionTestProcessor(String tag, String type, String description, RuntimeException e)
TestProcessor(String tag, String type, String description, Consumer<org.elasticsearch.ingest.IngestDocument> ingestDocumentConsumer)
TestProcessor(String tag, String type, String description, Function<org.elasticsearch.ingest.IngestDocument,org.elasticsearch.ingest.IngestDocument> ingestDocumentMapper)
TestProcessor(Consumer<org.elasticsearch.ingest.IngestDocument> ingestDocumentConsumer)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.ingest.Processor
execute
-
Constructor Details
-
TestProcessor
-
TestProcessor
-
TestProcessor
-
TestProcessor
-
TestProcessor
-
-
Method Details
-
execute
public org.elasticsearch.ingest.IngestDocument execute(org.elasticsearch.ingest.IngestDocument ingestDocument) throws Exception- Specified by:
execute
in interfaceorg.elasticsearch.ingest.Processor
- Throws:
Exception
-
getType
- Specified by:
getType
in interfaceorg.elasticsearch.ingest.Processor
-
getTag
- Specified by:
getTag
in interfaceorg.elasticsearch.ingest.Processor
-
getDescription
- Specified by:
getDescription
in interfaceorg.elasticsearch.ingest.Processor
-
getInvokedCounter
public int getInvokedCounter()
-