@Categories(categories={"parser","csv"}) public class CsvParser extends Object implements Directive, Lineage
Row provided based on configuration.| Constructor and Description |
|---|
CsvParser() |
| Modifier and Type | Method and Description |
|---|---|
UsageDefinition |
define() |
void |
destroy() |
List<Row> |
execute(List<Row> rows,
ExecutorContext context)
Parses a give column in a
Row as a CSV Row. |
void |
initialize(Arguments args) |
Mutation |
lineage() |
public static final String NAME
public UsageDefinition define()
public void initialize(Arguments args) throws DirectiveParseException
initialize in interface Executor<List<Row>,List<Row>>DirectiveParseExceptionpublic List<Row> execute(List<Row> rows, ExecutorContext context) throws DirectiveExecutionException, ErrorRowException
Row as a CSV Row.execute in interface Executor<List<Row>,List<Row>>rows - Input Row to be wrangled by this step.context - Specifies the context of the pipeline.DirectiveExecutionExceptionErrorRowExceptionCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.