Interface TableSink<T>
-
- Type Parameters:
T
- The return type of theTableSink
.
- All Known Implementing Classes:
TableSinkBase
@Deprecated @Internal public interface TableSink<T>
Deprecated.This interface has been replaced byDynamicTableSink
. The new interface consumes internal data structures. See FLIP-95 for more information.ATableSink
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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description TableSink<T>
configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
Deprecated.This method will be dropped in future versions.default DataType
getConsumedDataType()
Deprecated.Returns the data type consumed by thisTableSink
.default String[]
getFieldNames()
Deprecated.Use the field names ofgetTableSchema()
instead.default org.apache.flink.api.common.typeinfo.TypeInformation<?>[]
getFieldTypes()
Deprecated.Use the field types ofgetTableSchema()
instead.default org.apache.flink.api.common.typeinfo.TypeInformation<T>
getOutputType()
Deprecated.This method will be removed in future versions as it uses the old type system.default TableSchema
getTableSchema()
Deprecated.Returns the schema of the consumed table.
-
-
-
Method Detail
-
getConsumedDataType
default DataType getConsumedDataType()
Deprecated.Returns the data type consumed by thisTableSink
.- Returns:
- The data type expected by this
TableSink
.
-
getOutputType
@Deprecated default org.apache.flink.api.common.typeinfo.TypeInformation<T> 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
default TableSchema getTableSchema()
Deprecated.Returns the schema of the consumed table.- Returns:
- The
TableSchema
of the consumed table.
-
getFieldNames
@Deprecated default String[] getFieldNames()
Deprecated.Use the field names ofgetTableSchema()
instead.
-
getFieldTypes
@Deprecated default org.apache.flink.api.common.typeinfo.TypeInformation<?>[] 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 thisTableSink
configured 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
TableSink
configured with the field names and types of the table to emit.
-
-