Modifier and Type | Method and Description |
---|---|
static Table |
createTableFromElement(TableEnvironment tEnv,
String filePath,
DataType schema,
boolean batched)
Create a table from
PythonDynamicTableSource that read data from input file with
specific DataType . |
static InputFormat<RowData,?> |
getInputFormat(List<Object[]> data,
DataType dataType)
Wrap the unpickled python data with an InputFormat.
|
public static Table createTableFromElement(TableEnvironment tEnv, String filePath, 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 InputFormat<RowData,?> getInputFormat(List<Object[]> data, DataType dataType)
data
- The unpickled python data.dataType
- The python data type.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.