@Categories(categories="column") public class Keep extends Object implements Directive, Lineage
Keep implements a directive that
opposite of Drop columns. Instead of dropping the
columns specified, it keeps only those columns that are
specified.| Constructor and Description |
|---|
Keep() |
| Modifier and Type | Method and Description |
|---|---|
UsageDefinition |
define() |
void |
destroy() |
List<Row> |
execute(List<Row> rows,
ExecutorContext context) |
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
Copyright © 2022 CDAP Licensed under the Apache License, Version 2.0.