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.SeeResolvedSchema
andColumn
.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 class
TableColumn.ComputedColumn
Deprecated.Representation of a computed column.static class
TableColumn.MetadataColumn
Deprecated.Representation of a metadata column.static class
TableColumn.PhysicalColumn
Deprecated.Representation of a physical column.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
asSummaryString()
Deprecated.Returns a string that summarizes this column for printing to a console.static TableColumn.ComputedColumn
computed(String name, DataType type, String expression)
Deprecated.Creates a computed column that is computed from the given SQL expression.boolean
equals(Object o)
Deprecated.abstract Optional<String>
explainExtras()
Deprecated.Returns an explanation of specific column extras next to name and type.String
getName()
Deprecated.Returns the name of this column.DataType
getType()
Deprecated.Returns the data type of this column.int
hashCode()
Deprecated.abstract boolean
isPersisted()
Deprecated.Returns whether the given column is persisted in a sink operation.abstract boolean
isPhysical()
Deprecated.Returns whether the given column is a physical column of a table; neither computed nor metadata.static TableColumn.MetadataColumn
metadata(String name, DataType type)
Deprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumn
metadata(String name, DataType type, boolean isVirtual)
Deprecated.Creates a metadata column from metadata of the given column name.static TableColumn.MetadataColumn
metadata(String name, DataType type, String metadataAlias)
Deprecated.Creates a metadata column from metadata of the given alias.static TableColumn.MetadataColumn
metadata(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 TableColumn
of(String name, DataType type)
Deprecated.Usephysical(String, DataType)
instead.static TableColumn
of(String name, DataType type, String expression)
Deprecated.Usecomputed(String, DataType, String)
instead.static TableColumn.PhysicalColumn
physical(String name, DataType type)
Deprecated.Creates a regular table column that represents physical data.String
toString()
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.
-
-