|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPipeline
Common set of methods to drive an event-driven process. A pipeline is made of a chain of IPipelineStep
objects through which documents are processed.
| Method Summary | |
|---|---|
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. |
java.lang.String |
getId()
Get the Pipelines identifier. |
PipelineReturnValue |
getState()
Gets the current pipeline state. |
java.util.List<IPipelineStep> |
getSteps()
Gets the list of all steps in this pipeline. |
void |
process(Event input)
Starts IPipeline processing with a Event as input. |
void |
process(RawDocument input)
Starts IPipeline processing with a RawDocument as input. |
void |
setId(java.lang.String id)
Set the pipelines identifier. |
void |
startBatch()
Starts a batch of inputs. |
| Method Detail |
|---|
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.void process(Event input)
IPipeline processing with a Event as input.
input - event that primes the IPipelinePipelineReturnValue getState()
void cancel()
void addStep(IPipelineStep step)
step - the step to add.java.util.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(java.lang.String id)
java.lang.String getId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||