Class ColumnList

java.lang.Object
org.apache.flink.types.ColumnList
All Implemented Interfaces:
Serializable

@PublicEvolving public final class ColumnList extends Object implements Serializable
Represents a list of columns.

This type is the return type of calls to DESCRIPTOR(`c0`, `c1`). The type is intended to be used in arguments of ProcessTableFunctions.

See Also:
  • Method Details

    • of

      public static ColumnList of(List<String> names, List<DataType> dataTypes)
    • of

      public static ColumnList of(List<String> names)
    • of

      public static ColumnList of(String... names)
    • getNames

      public List<String> getNames()
      Returns a list of column names.

      For example, it returns [a, b, c] for function calls like DESCRIPTOR(a INT, b STRING, c BOOLEAN) or DESCRIPTOR(a, b, c).

    • getDataTypes

      public List<DataType> getDataTypes()
      Returns a list of data types (if available).

      For example, it returns [INT, STRING, BOOLEAN] for function calls like DESCRIPTOR(a INT, b STRING, c BOOLEAN).

      Note: The list might be empty if only names were passed to the descriptor function like DESCRIPTOR(a, b, c). Thus, the list is either empty or has the same number of elements as getNames().

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object