public class DirectiveOutputSchemaGenerator extends Object
| Constructor and Description |
|---|
DirectiveOutputSchemaGenerator(Directive directive,
SchemaConverter schemaGenerator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewOutputFields(List<Row> output)
Method to add new fields from the given output to the map of fieldName --> value maintained for schema generation.
|
io.cdap.cdap.api.data.schema.Schema |
getDirectiveOutputSchema(SchemaResolutionContext context)
Method to get the output schema of the directive.
|
public DirectiveOutputSchemaGenerator(Directive directive, SchemaConverter schemaGenerator)
public void addNewOutputFields(List<Row> output)
output - list of output Rows after applying directive.public io.cdap.cdap.api.data.schema.Schema getDirectiveOutputSchema(SchemaResolutionContext context) throws RecordConvertorException
context - input Schema of the data before applying the directiveSchema corresponding to the output dataRecordConvertorExceptionCopyright © 2024 CDAP Licensed under the Apache License, Version 2.0.