Package org.jesterj.ingest.model
Interface Plan
-
- All Superinterfaces:
Active,Configurable
- All Known Implementing Classes:
PlanImpl
public interface Plan extends Active, Configurable
-
-
Field Summary
-
Fields inherited from interface org.jesterj.ingest.model.Configurable
VALID_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StepfindStep(java.lang.String stepName)Locate the step in the plan that has the given name.java.lang.StringgetDocIdField()This is the field that is to be used as a docIdStep[]getExecutableSteps()Get the subset of steps that will execute when the plan is activated.Step[]getSteps()Return everyStepin the plan regardless of whether it will be executing when the plan is activatedintgetVersion()A (usually serially incremented) version identifier for a plan.guru.nidi.graphviz.engine.Renderervisualize(guru.nidi.graphviz.engine.Format format)Produce an image visualization of this plan-
Methods inherited from interface org.jesterj.ingest.model.Active
activate, deactivate, isActive
-
Methods inherited from interface org.jesterj.ingest.model.Configurable
getName, isValidName
-
-
-
-
Method Detail
-
getSteps
Step[] getSteps()
Return everyStepin the plan regardless of whether it will be executing when the plan is activated- Returns:
- All steps
-
getExecutableSteps
Step[] getExecutableSteps()
Get the subset of steps that will execute when the plan is activated. This should be a continuous set of steps that can be traversed in total viaStep.getNextSteps(Document).- Returns:
- an Array of steps in the plan that will be executed
-
getDocIdField
java.lang.String getDocIdField()
This is the field that is to be used as a docId- Returns:
- usually "id" but some legacy indexes may need to use something else
-
findStep
Step findStep(java.lang.String stepName)
Locate the step in the plan that has the given name. All steps in the plan must have a unique name.- Parameters:
stepName- the name of the step to find- Returns:
- the step if found or null if the name does not match any steps.
-
visualize
guru.nidi.graphviz.engine.Renderer visualize(guru.nidi.graphviz.engine.Format format)
Produce an image visualization of this plan- Parameters:
format- the format that should be rendered- Returns:
- An image visualizing the plan as a directed graph.
-
getVersion
int getVersion()
A (usually serially incremented) version identifier for a plan. Changing the version of the plan indicates that the processing has changed substantially, and that prior indexing no longer is considered to have produced the desired output. The practical implication of changing the plan version is that all documents will become eligible for re-indexing.- Returns:
- a numeric identifier which changes when prior indexing is invalidated and there is a need for re-indexing. Monotonically increasing positive numbers are recommended but not absolutely required.
-
-