| Package | Description |
|---|---|
| org.apache.flink.table.api | |
| org.apache.flink.table.utils |
| Modifier and Type | Method and Description |
|---|---|
static TableColumn |
TableColumn.of(String name,
DataType type)
Creates a table column from given name and data type.
|
static TableColumn |
TableColumn.of(String name,
DataType type,
String expression)
Creates a table column from given name and computation expression.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<TableColumn> |
TableSchema.getTableColumn(int fieldIndex)
Returns the
TableColumn instance for the given field index. |
Optional<TableColumn> |
TableSchema.getTableColumn(String fieldName)
Returns the
TableColumn instance for the given field name. |
List<TableColumn> |
TableSchema.getTableColumns()
Returns all the
TableColumns for this table schema. |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
TypeMappingUtils.computePhysicalIndices(List<TableColumn> logicalColumns,
DataType physicalType,
java.util.function.Function<String,String> nameRemapping)
Computes indices of physical fields corresponding to the selected logical fields of a
TableSchema. |
static int[] |
TypeMappingUtils.computePhysicalIndicesOrTimeAttributeMarkers(TableSource<?> tableSource,
List<TableColumn> logicalColumns,
boolean streamMarkers,
java.util.function.Function<String,String> nameRemapping)
Computes indices of physical fields corresponding to the selected logical fields of a
TableSchema. |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.