I - type of input objectO - type of output objectE - type of error object@PublicEvolving public interface RecipePipeline<I,O,E> extends Serializable
RecipePipeline executes array of Executor in the order they are specified.| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the pipeline.
|
List<E> |
errors()
Returns records that are errored out.
|
List<I> |
execute(List<I> input)
Executes the pipeline on the input.
|
List<O> |
execute(List<I> input,
io.cdap.cdap.api.data.schema.Schema schema)
Executes the pipeline on the input.
|
void |
initialize(RecipeParser directives,
ExecutorContext context)
Initializes the wrangle pipeline using the directives.
|
void initialize(RecipeParser directives, ExecutorContext context) throws RecipeException
directives - Wrangle directives.context - RecipeExceptionList<O> execute(List<I> input, io.cdap.cdap.api.data.schema.Schema schema) throws RecipeException
input - List of Input record of type I.schema - Schema to which the output should be mapped.RecipeExceptionList<I> execute(List<I> input) throws RecipeException
input - List of input record of type I.RecipeExceptionList<E> errors()
void destroy()
Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.