public interface IPipeline
IPipelineStep
objects through which documents are processed.| Modifier and Type | Method and Description |
|---|---|
void |
addStep(IPipelineStep step)
Adds a step to this pipeline.
|
void |
cancel()
Cancels processing on this pipeline.
|
void |
clearSteps()
Remove all the
IPipelineSteps from the pipeline. |
void |
destroy()
Frees all resources from all steps in this pipeline.
|
void |
endBatch()
Finishes a batch of inputs.
|
String |
getId()
Get the Pipelines identifier.
|
PipelineReturnValue |
getState()
Gets the current pipeline state.
|
List<IPipelineStep> |
getSteps()
Gets the list of all steps in this pipeline.
|
void |
process(Event input)
|
void |
process(RawDocument input)
Starts
IPipeline processing with a RawDocument as input. |
void |
setId(String id)
Set the pipelines identifier.
|
void |
startBatch()
Starts a batch of inputs.
|
void process(RawDocument input)
IPipeline processing with a RawDocument as input. This is a convenience method that calls
process(Event).input - the RawDocument to process.PipelineReturnValue getState()
void cancel()
void addStep(IPipelineStep step)
step - the step to add.List<IPipelineStep> getSteps()
void startBatch()
void endBatch()
void destroy()
void clearSteps()
IPipelineSteps from the pipeline. Also calls the destroy() method on each step.void setId(String id)
id - the new id of the pipeline.String getId()
Copyright © 2022. All rights reserved.