Interface TableSource<T>
-
- Type Parameters:
T
- The return type of theTableSource
.
- All Known Subinterfaces:
LookupableTableSource<T>
@Deprecated @Internal public interface TableSource<T>
Deprecated.This interface has been replaced byDynamicTableSource
. The new interface produces internal data structures. See FLIP-95 for more information.Defines an external table with the schema that is provided bygetTableSchema()
.The data of a
TableSource
is produced as aDataStream
in case of aStreamTableSource
. The type of this producedDataStream
is specified by thegetProducedDataType()
method.By default, the fields of the
TableSchema
are implicitly mapped by name to the fields of the producedDataType
. An explicit mapping can be defined by implementing theDefinedFieldMapping
interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default String
explainSource()
Deprecated.Describes the table source.default DataType
getProducedDataType()
Deprecated.Returns theDataType
for the produced data of theTableSource
.default org.apache.flink.api.common.typeinfo.TypeInformation<T>
getReturnType()
Deprecated.This method will be removed in future versions as it uses the old type system.TableSchema
getTableSchema()
Deprecated.Table schema is a logical description of a table and should not be part of the physical TableSource.
-
-
-
Method Detail
-
getProducedDataType
default DataType getProducedDataType()
Deprecated.Returns theDataType
for the produced data of theTableSource
.- Returns:
- The data type of the returned
DataStream
.
-
getReturnType
@Deprecated default org.apache.flink.api.common.typeinfo.TypeInformation<T> getReturnType()
Deprecated.This method will be removed in future versions as it uses the old type system. It is recommended to usegetProducedDataType()
instead which uses the new type system based onDataTypes
. 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.
-
getTableSchema
@Deprecated TableSchema getTableSchema()
Deprecated.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 inTableEnvironment#connect(...)
.Returns the schema of the produced table.- Returns:
- The
TableSchema
of the produced table.
-
explainSource
default String explainSource()
Deprecated.Describes the table source.- Returns:
- A String explaining the
TableSource
.
-
-