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.
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.

  • Method Details

    • 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.
    • of

      @Deprecated public static TableColumn of(String name, DataType type, String expression)
      Deprecated.
    • 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.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object