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(RecipeParser recipeParser,
ExecutorContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
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.
|
public RecipePipelineExecutor(RecipeParser recipeParser, @Nullable ExecutorContext context)
public void close()
close in interface RecipePipeline<Row,io.cdap.cdap.api.data.format.StructuredRecord,ErrorRecord>close in interface AutoCloseablepublic 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 © 2022 CDAP Licensed under the Apache License, Version 2.0.