T - The return type of the TableSource.@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 getReturnType() method.
By default, the fields of the TableSchema are implicitly mapped by name to the fields of
the return type TypeInformation. An explicit mapping can be defined by implementing the
DefinedFieldMapping interface.
| 限定符和类型 | 方法和说明 |
|---|---|
default String |
explainSource()
Describes the table source.
|
org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getReturnType()
Returns the
TypeInformation for the return type of the TableSource. |
TableSchema |
getTableSchema()
Returns the schema of the produced table.
|
org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnType()
TypeInformation for the return type of the TableSource.
The fields of the return type are mapped to the table schema based on their name.DataSet or DataStream.TableSchema getTableSchema()
TableSchema of the produced table.default String explainSource()
TableSource.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.