Class PlanImpl.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • addStep

        public PlanImpl.Builder addStep​(StepImpl.Builder step,
                                        java.lang.String... predecessors)
        Add a step to the plan. Will automatically append the supplied step to the specified predecessor step. If a step is added twice with different predecessors this represents a node that coalesces two paths in the DAG. If more than one step exists for the same predecessor this represents a fork in the DAG. Steps never know from whence a document was handed to them.
        Parameters:
        step - the step to add, must not be null
        predecessors - the stepsMap that this step should follow. If null, step must build a scanner. The step must have a step name that is unique.
        Returns:
        this builder object for chaining
      • build

        public Plan build()