@Internal public final class PythonTableUtils extends Object
限定符和类型 | 方法和说明 |
---|---|
static org.apache.flink.table.api.Table |
createTableFromElement(org.apache.flink.table.api.TableEnvironment tEnv,
String filePath,
org.apache.flink.table.types.DataType schema,
boolean batched)
Create a table from
PythonDynamicTableSource that read data from input file with
specific DataType . |
static org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,?> |
getInputFormat(List<Object[]> data,
org.apache.flink.table.types.DataType dataType)
Wrap the unpickled python data with an InputFormat.
|
public static org.apache.flink.table.api.Table createTableFromElement(org.apache.flink.table.api.TableEnvironment tEnv, String filePath, org.apache.flink.table.types.DataType schema, boolean batched)
PythonDynamicTableSource
that read data from input file with
specific DataType
.tEnv
- The TableEnvironment to create table.filePath
- the file path of the input data.schema
- The python data type.batched
- Whether to read data in a batchpublic static org.apache.flink.api.common.io.InputFormat<org.apache.flink.table.data.RowData,?> getInputFormat(List<Object[]> data, org.apache.flink.table.types.DataType dataType)
data
- The unpickled python data.dataType
- The python data type.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.