public final class RecipePipelineExecutor extends Object implements RecipePipeline<Row,io.cdap.cdap.api.data.format.StructuredRecord,ErrorRecord>
RecipePipelineExecutor compiles the recipe and executes the directives.| Constructor and Description |
|---|
RecipePipelineExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Invokes each directives destroy method to perform any cleanup required by each individual directive.
|
List<ErrorRecord> |
errors()
Returns records that are errored out.
|
List<Row> |
execute(List<Row> rows)
Executes the pipeline on the input.
|
List<io.cdap.cdap.api.data.format.StructuredRecord> |
execute(List<Row> rows,
io.cdap.cdap.api.data.schema.Schema schema)
Executes the pipeline on the input.
|
void |
initialize(RecipeParser parser,
ExecutorContext context)
Configures the pipeline based on the directives.
|
public void initialize(RecipeParser parser, ExecutorContext context) throws RecipeException
initialize in interface RecipePipeline<Row,io.cdap.cdap.api.data.format.StructuredRecord,ErrorRecord>parser - Wrangle directives parser.RecipeExceptionpublic void destroy()
destroy in interface RecipePipeline<Row,io.cdap.cdap.api.data.format.StructuredRecord,ErrorRecord>public List<io.cdap.cdap.api.data.format.StructuredRecord> execute(List<Row> rows, io.cdap.cdap.api.data.schema.Schema schema) throws RecipeException
execute in interface RecipePipeline<Row,io.cdap.cdap.api.data.format.StructuredRecord,ErrorRecord>rows - List of Input record of type I.schema - Schema to which the output should be mapped.RecipeExceptionpublic List<Row> execute(List<Row> rows) throws RecipeException
execute in interface RecipePipeline<Row,io.cdap.cdap.api.data.format.StructuredRecord,ErrorRecord>rows - List of input record of type I.RecipeExceptionpublic List<ErrorRecord> errors()
errors in interface RecipePipeline<Row,io.cdap.cdap.api.data.format.StructuredRecord,ErrorRecord>Copyright © 2021 CDAP Licensed under the Apache License, Version 2.0.