public class DataSetConversionUtil extends Object
| 构造器和说明 |
|---|
DataSetConversionUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> |
fromTable(Long sessionId,
org.apache.flink.table.api.Table table)
Convert the given Table to
DataSet<Row>. |
static org.apache.flink.table.api.Table |
toTable(Long sessionId,
org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data,
String[] colNames)
Convert the given DataSet into a Table with specified colNames.
|
static org.apache.flink.table.api.Table |
toTable(Long sessionId,
org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data,
String[] colNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] colTypes)
Convert the given DataSet into a Table with specified colNames and colTypes.
|
static org.apache.flink.table.api.Table |
toTable(Long sessionId,
org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data,
org.apache.flink.table.api.TableSchema schema)
Convert the given DataSet into a Table with specified TableSchema.
|
static org.apache.flink.table.api.Table |
toTable(MLEnvironment session,
org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data,
String[] colNames)
Convert the given DataSet into a Table with specified colNames.
|
static org.apache.flink.table.api.Table |
toTable(MLEnvironment session,
org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data,
String[] colNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] colTypes)
Convert the given DataSet into a Table with specified colNames and colTypes.
|
public static org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> fromTable(Long sessionId, org.apache.flink.table.api.Table table)
DataSet<Row>.sessionId - the sessionId of MLEnvironmentFactorytable - the Table to convert.public static org.apache.flink.table.api.Table toTable(Long sessionId, org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data, org.apache.flink.table.api.TableSchema schema)
sessionId - the sessionId of MLEnvironmentFactorydata - the DataSet to convert.schema - the specified TableSchema.public static org.apache.flink.table.api.Table toTable(Long sessionId, org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data, String[] colNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] colTypes)
sessionId - sessionId the sessionId of MLEnvironmentFactory.data - the DataSet to convert.colNames - the specified colNames.colTypes - the specified colTypes. This variable is used only when the DataSet is
produced by a function and Flink cannot determine automatically what the produced type
is.public static org.apache.flink.table.api.Table toTable(Long sessionId, org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data, String[] colNames)
sessionId - sessionId the sessionId of MLEnvironmentFactory.data - the DataSet to convert.colNames - the specified colNames.public static org.apache.flink.table.api.Table toTable(MLEnvironment session, org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data, String[] colNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] colTypes)
session - the MLEnvironment using to convert DataSet to Table.data - the DataSet to convert.colNames - the specified colNames.colTypes - the specified colTypes. This variable is used only when the DataSet is
produced by a function and Flink cannot determine automatically what the produced type
is.public static org.apache.flink.table.api.Table toTable(MLEnvironment session, org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> data, String[] colNames)
session - the MLEnvironment using to convert DataSet to Table.data - the DataSet to convert.colNames - the specified colNames.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.