Class TableColumn
- java.lang.Object
-
- org.apache.flink.table.legacy.api.TableColumn
-
- Direct Known Subclasses:
TableColumn.ComputedColumn,TableColumn.MetadataColumn,TableColumn.PhysicalColumn
@Deprecated @Internal public abstract class TableColumn extends Object
Deprecated.SeeResolvedSchemaandColumn.Representation of a table column in the API.A table column is fully resolved with a name and
DataType. It describes either aTableColumn.PhysicalColumn,TableColumn.ComputedColumn, orTableColumn.MetadataColumn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableColumn.ComputedColumnDeprecated.Representation of a computed column.static classTableColumn.MetadataColumnDeprecated.Representation of a metadata column.static classTableColumn.PhysicalColumnDeprecated.Representation of a physical column.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringasSummaryString()Deprecated.Returns a string that summarizes this column for printing to a console.static TableColumn.ComputedColumncomputed(String name, DataType type, String expression)Deprecated.Creates a computed column that is computed from the given SQL expression.booleanequals(Object o)Deprecated.abstract Optional<String>explainExtras()Deprecated.Returns an explanation of specific column extras next to name and type.StringgetName()Deprecated.Returns the name of this column.DataTypegetType()Deprecated.Returns the data type of this column.inthashCode()Deprecated.abstract booleanisPersisted()Deprecated.Returns whether the given column is persisted in a sink operation.abstract booleanisPhysical()Deprecated.Returns whether the given column is a physical column of a table; neither computed nor metadata.static TableColumn.MetadataColumnmetadata(String name, DataType type)Deprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumnmetadata(String name, DataType type, boolean isVirtual)Deprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumnmetadata(String name, DataType type, String metadataAlias)Deprecated.Creates a metadata column from metadata of the given alias.static TableColumn.MetadataColumnmetadata(String name, DataType type, 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).static TableColumnof(String name, DataType type)Deprecated.Usephysical(String, DataType)instead.static TableColumnof(String name, DataType type, String expression)Deprecated.Usecomputed(String, DataType, String)instead.static TableColumn.PhysicalColumnphysical(String name, DataType type)Deprecated.Creates a regular table column that represents physical data.StringtoString()Deprecated.
-
-
-
Method Detail
-
physical
public static TableColumn.PhysicalColumn physical(String name, DataType type)
Deprecated.Creates a regular table column that represents physical data.
-
computed
public static TableColumn.ComputedColumn computed(String name, DataType type, String expression)
Deprecated.Creates a computed column that is computed from the given SQL expression.
-
metadata
public static TableColumn.MetadataColumn metadata(String name, DataType type)
Deprecated.Creates a metadata column from metadata of the given column name.The column is not virtual by default.
-
metadata
public static TableColumn.MetadataColumn metadata(String name, DataType type, boolean isVirtual)
Deprecated.Creates a metadata column from metadata of the given column name.Allows to specify whether the column is virtual or not.
-
metadata
public static TableColumn.MetadataColumn metadata(String name, DataType type, String metadataAlias)
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 public static TableColumn of(String name, DataType type)
Deprecated.Usephysical(String, DataType)instead.
-
of
@Deprecated public static TableColumn of(String name, DataType type, String expression)
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
public DataType getType()
Deprecated.Returns the data type of this column.
-
getName
public String getName()
Deprecated.Returns the name of this column.
-
asSummaryString
public String asSummaryString()
Deprecated.Returns a string that summarizes this column for printing to a console.
-
explainExtras
public abstract Optional<String> explainExtras()
Deprecated.Returns an explanation of specific column extras next to name and type.
-
-