Processor
public class TestProcessor extends java.lang.Object implements Processor
Consumer
of IngestDocument
to be called when executed.Modifier and Type | Class | Description |
---|---|---|
static class |
TestProcessor.Factory |
Processor.Parameters
Constructor | Description |
---|---|
TestProcessor(java.lang.String tag,
java.lang.String type,
java.util.function.Consumer<IngestDocument> ingestDocumentConsumer) |
|
TestProcessor(java.util.function.Consumer<IngestDocument> ingestDocumentConsumer) |
Modifier and Type | Method | Description |
---|---|---|
void |
execute(IngestDocument ingestDocument) |
|
int |
getInvokedCounter() |
|
java.lang.String |
getTag() |
|
java.lang.String |
getType() |
public TestProcessor(java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
public TestProcessor(java.lang.String tag, java.lang.String type, java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
public void execute(IngestDocument ingestDocument) throws java.lang.Exception
public int getInvokedCounter()