@Internal public class TableSchemaUtils extends Object
TableSchema
.Constructor and Description |
---|
TableSchemaUtils() |
Modifier and Type | Method and Description |
---|---|
static TableSchema |
checkNoGeneratedColumns(TableSchema schema)
Throws exception if the given
TableSchema contains any generated columns. |
static boolean |
containsGeneratedColumns(TableSchema schema)
Returns true if there are any generated columns in the given
TableColumn . |
static TableSchema |
getPhysicalSchema(TableSchema tableSchema)
Return
TableSchema which consists of all physical columns. |
public static TableSchema getPhysicalSchema(TableSchema tableSchema)
TableSchema
which consists of all physical columns. That means, the computed
columns are filtered out.
Readers(or writers) such as TableSource
and TableSink
should use this physical
schema to generate TableSource.getProducedDataType()
and TableSource.getTableSchema()
rather than using the raw TableSchema which may contains computed columns.
public static boolean containsGeneratedColumns(TableSchema schema)
TableColumn
.public static TableSchema checkNoGeneratedColumns(TableSchema schema)
TableSchema
contains any generated columns.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.