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.
Modifier and Type | Method and Description |
---|---|
default String |
explainSource()
Describes the table source.
|
TypeInformation<T> |
getReturnType()
Returns the
TypeInformation for the return type of the TableSource . |
TableSchema |
getTableSchema()
Returns the schema of the produced table.
|
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–2020 The Apache Software Foundation. All rights reserved.