Class TableColumn
java.lang.Object
org.apache.flink.table.legacy.api.TableColumn
- Direct Known Subclasses:
TableColumn.ComputedColumn,TableColumn.MetadataColumn,TableColumn.PhysicalColumn
Deprecated.
Representation of a table column in the API.
A table column is fully resolved with a name and DataType. It describes either a
TableColumn.PhysicalColumn, TableColumn.ComputedColumn, or TableColumn.MetadataColumn.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Representation of a computed column.static classDeprecated.Representation of a metadata column.static classDeprecated.Representation of a physical column. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns a string that summarizes this column for printing to a console.static TableColumn.ComputedColumnDeprecated.Creates a computed column that is computed from the given SQL expression.booleanDeprecated.Deprecated.Returns an explanation of specific column extras next to name and type.getName()Deprecated.Returns the name of this column.getType()Deprecated.Returns the data type of this column.inthashCode()Deprecated.abstract booleanDeprecated.Returns whether the given column is persisted in a sink operation.abstract booleanDeprecated.Returns whether the given column is a physical column of a table; neither computed nor metadata.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given alias.static TableColumn.MetadataColumnDeprecated.Creates a metadata column from metadata of the given column name or from metadata of the given alias (if not null).static TableColumnDeprecated.Usephysical(String, DataType)instead.static TableColumnDeprecated.Usecomputed(String, DataType, String)instead.static TableColumn.PhysicalColumnDeprecated.Creates a regular table column that represents physical data.toString()Deprecated.
-
Method Details
-
physical
Deprecated.Creates a regular table column that represents physical data. -
computed
Deprecated.Creates a computed column that is computed from the given SQL expression. -
metadata
Deprecated.Creates a metadata column from metadata of the given column name.The column is not virtual by default.
-
metadata
Deprecated.Creates a metadata column from metadata of the given column name.Allows to specify whether the column is virtual or not.
-
metadata
Deprecated.Creates a metadata column from metadata of the given alias.The column is not virtual by default.
-
metadata
public static TableColumn.MetadataColumn metadata(String name, DataType type, @Nullable String metadataAlias, boolean isVirtual) Deprecated.Creates a metadata column from metadata of the given column name or from metadata of the given alias (if not null).Allows to specify whether the column is virtual or not.
-
of
Deprecated.Usephysical(String, DataType)instead. -
of
Deprecated.Usecomputed(String, DataType, String)instead. -
isPhysical
public abstract boolean isPhysical()Deprecated.Returns whether the given column is a physical column of a table; neither computed nor metadata. -
isPersisted
public abstract boolean isPersisted()Deprecated.Returns whether the given column is persisted in a sink operation. -
getType
Deprecated.Returns the data type of this column. -
getName
Deprecated.Returns the name of this column. -
asSummaryString
Deprecated.Returns a string that summarizes this column for printing to a console. -
explainExtras
Deprecated.Returns an explanation of specific column extras next to name and type. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
ResolvedSchemaandColumn.