T - The return type of the TableSource.DynamicTableSource. The new interface
produces internal data structures and only works with the Blink planner. See FLIP-95 for more
information.@Deprecated @PublicEvolving public interface TableSource<T>
getTableSchema().
The data of a TableSource is produced as a DataSet in case of a BatchTableSource or as a DataStream in case of a StreamTableSource. The type of
ths produced DataSet or DataStream is specified by the getProducedDataType() method.
By default, the fields of the TableSchema are implicitly mapped by name to the fields
of the produced DataType. An explicit mapping can be defined by implementing the DefinedFieldMapping interface.
| 限定符和类型 | 方法和说明 |
|---|---|
default String |
explainSource()
已过时。
Describes the table source.
|
default DataType |
getProducedDataType()
已过时。
Returns the
DataType for the produced data of the TableSource. |
default org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getReturnType()
已过时。
This method will be removed in future versions as it uses the old type system. It
is recommended to use
getProducedDataType() instead which uses the new type
system based on DataTypes. Please make sure to use either the old or the new type
system consistently to avoid unintended behavior. See the website documentation for more
information. |
TableSchema |
getTableSchema()
已过时。
Table schema is a logical description of a table and should not be part of the
physical TableSource. Define schema when registering a Table either in DDL or in
TableEnvironment#connect(...). |
default DataType getProducedDataType()
DataType for the produced data of the TableSource.DataSet or DataStream.@Deprecated default org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnType()
getProducedDataType() instead which uses the new type
system based on DataTypes. Please make sure to use either the old or the new type
system consistently to avoid unintended behavior. See the website documentation for more
information.@Deprecated TableSchema getTableSchema()
TableEnvironment#connect(...).TableSchema of the produced table.default String explainSource()
TableSource.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.