Package org.apache.flink.types
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 ofProcessTableFunctions.- See Also:
DataTypes.DESCRIPTOR(), Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DataType>getDataTypes()Returns a list of data types (if available).List<String>getNames()Returns a list of column names.static ColumnListof(List<String> names)static ColumnListof(List<String> names, List<DataType> dataTypes)StringtoString()
-
-
-
Method Detail
-
of
public static ColumnList of(List<String> names, List<DataType> dataTypes)
-
of
public static ColumnList of(List<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)orDESCRIPTOR(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 asgetNames().
-
-