Interface PipelineRealizer


public interface PipelineRealizer

Methods for converting PipelineDeclarations in to RealizedPipelines

  • Method Details

    • populateUnboundFromExpression

      static void populateUnboundFromExpression(RealizationContext context, Parameter parameter, AST value, Map<String,List<?>> parameters, Consumer<List<Problem>> problemConsumer)

      Common handling for populating an unbound parameter from an expression, with some specific handling for realizing expressions or binding expressions straight-to the parameterMap

      Parameters:
      context - for realizing constants
      parameter - the parameter to bind
      value - the expression being bound
      parameters - map to populate
      problemConsumer - where to put errors with realizing constants
    • realize

      Realizes a PipelineDeclaration in to a RealizedPipeline. A realized pipeline is effectively 'compiled' at this point to the extent that we know the various functions exist and that it is type safe. It can now be handed over to a PipelineExecutor for execution.

    • realize

      Incremental version of realize(ExecutionContext, PipelineDeclaration) that realizes a pipeline "on top" of another pipeline, e.g. new steps should be added in on top of the existing pipeline.

      This method is here to support Steps that want to realize some kind of sub pipeline that gets executed as part of the parent.