@Categories(categories={"row","data-quality"}) public class SendToError extends Object implements Directive, Lineage
This step will evaluate the condition, if the condition evaluates to true, then the row will be skipped. If the condition evaluates to false, then the row will be accepted.
| Constructor and Description |
|---|
SendToError() |
| Modifier and Type | Method and Description |
|---|---|
UsageDefinition |
define() |
void |
destroy() |
List<Row> |
execute(List<Row> rows,
ExecutorContext context) |
List<EntityCountMetric> |
getCountMetrics() |
void |
initialize(Arguments args) |
Mutation |
lineage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputSchemapublic 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
execute in interface Executor<List<Row>,List<Row>>DirectiveExecutionExceptionErrorRowExceptionpublic List<EntityCountMetric> getCountMetrics()
getCountMetrics in interface DirectivegetCountMetrics in interface EntityMetricsCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.