Interface TableSource<T>
- Type Parameters:
T- The return type of theTableSource.
- All Known Subinterfaces:
LookupableTableSource<T>
Deprecated.
Defines an external table with the schema that is provided by
getTableSchema().
The data of a TableSource is produced as a DataStream in case of a
StreamTableSource. The type of this produced 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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringDeprecated.Describes the table source.default DataTypeDeprecated.Returns theDataTypefor the produced data of theTableSource.default org.apache.flink.api.common.typeinfo.TypeInformation<T>Deprecated.This method will be removed in future versions as it uses the old type system.Deprecated.Table schema is a logical description of a table and should not be part of the physical TableSource.
-
Method Details
-
getProducedDataType
Deprecated.Returns theDataTypefor the produced data of theTableSource.- Returns:
- The data type of the returned
DataStream.
-
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.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
TableSchemaof the produced table.
-
explainSource
Deprecated.Describes the table source.- Returns:
- A String explaining the
TableSource.
-
DynamicTableSource. The new interface produces internal data structures. See FLIP-95 for more information.