public class DefaultMutableRowSchema extends Object implements MutableRowSchema
| Constructor and Description |
|---|
DefaultMutableRowSchema(io.cdap.cdap.api.data.schema.Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
io.cdap.cdap.api.data.schema.Schema.Field |
getField(String columnName) |
ColumnRenameInfo |
getRenameInfo() |
void |
renameField(String originalName,
String newName) |
void |
setField(io.cdap.cdap.api.data.schema.Schema.Field field) |
io.cdap.cdap.api.data.schema.Schema |
toSchema() |
public DefaultMutableRowSchema(io.cdap.cdap.api.data.schema.Schema schema)
public io.cdap.cdap.api.data.schema.Schema.Field getField(String columnName) throws NotFoundException
getField in interface MutableRowSchemaNotFoundExceptionpublic void setField(io.cdap.cdap.api.data.schema.Schema.Field field)
setField in interface MutableRowSchemapublic void renameField(String originalName, String newName)
renameField in interface MutableRowSchemapublic io.cdap.cdap.api.data.schema.Schema toSchema()
toSchema in interface MutableRowSchemapublic ColumnRenameInfo getRenameInfo()
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.