Interface PipelineRealizer
Methods for converting PipelineDeclarations in to RealizedPipelines
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidpopulateUnboundFromExpression(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 parameterMaprealize(ExecutionContext context, PipelineDeclaration pipeline) Realizes aPipelineDeclarationin to aRealizedPipeline.realize(RealizedPipeline addTo, PipelineDeclaration pipeline) Incremental version ofrealize(ExecutionContext, PipelineDeclaration)that realizes a pipeline "on top" of another pipeline, e.g.
-
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 constantsparameter- the parameter to bindvalue- the expression being boundparameters- map to populateproblemConsumer- where to put errors with realizing constants
-
realize
Realizes a
PipelineDeclarationin to aRealizedPipeline. 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 aPipelineExecutorfor 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.
-