Interface TableSink<T>
- Type Parameters:
T- The return type of theTableSink.
- All Known Implementing Classes:
TableSinkBase
Deprecated.
A
TableSink specifies how to emit a table to an external system or location.
The interface is generic such that it can support different storage locations and formats.
-
Method Summary
Modifier and TypeMethodDescriptionconfigure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes) Deprecated.This method will be dropped in future versions.default DataTypeDeprecated.Returns the data type consumed by thisTableSink.default String[]Deprecated.Use the field names ofgetTableSchema()instead.default org.apache.flink.api.common.typeinfo.TypeInformation<?>[]Deprecated.Use the field types ofgetTableSchema()instead.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.default TableSchemaDeprecated.Returns the schema of the consumed table.
-
Method Details
-
getConsumedDataType
Deprecated.Returns the data type consumed by thisTableSink.- Returns:
- The data type expected by this
TableSink.
-
getOutputType
Deprecated.This method will be removed in future versions as it uses the old type system. It is recommended to usegetConsumedDataType()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.Returns the schema of the consumed table.- Returns:
- The
TableSchemaof the consumed table.
-
getFieldNames
Deprecated.Use the field names ofgetTableSchema()instead. -
getFieldTypes
Deprecated.Use the field types ofgetTableSchema()instead. -
configure
@Deprecated TableSink<T> configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes) Deprecated.This method will be dropped in future versions. It is recommended to pass a static schema when instantiating the sink instead.Returns a copy of thisTableSinkconfigured with the field names and types of the table to emit.- Parameters:
fieldNames- The field names of the table to emit.fieldTypes- The field types of the table to emit.- Returns:
- A copy of this
TableSinkconfigured with the field names and types of the table to emit.
-
DynamicTableSink. The new interface consumes internal data structures. See FLIP-95 for more information.