T - The return type of the TableSink.DynamicTableSink. The new interface
consumes internal data structures. See FLIP-95 for more information.@PublicEvolving
public interface TableSink<T>
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.
| 限定符和类型 | 方法和说明 |
|---|---|
TableSink<T> |
configure(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
已过时。
This method will be dropped in future versions. It is recommended to pass a
static schema when instantiating the sink instead.
|
default DataType |
getConsumedDataType()
已过时。
Returns the data type consumed by this
TableSink. |
default String[] |
getFieldNames()
已过时。
Use the field names of
getTableSchema() instead. |
default org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
getFieldTypes()
已过时。
Use the field types of
getTableSchema() instead. |
default org.apache.flink.api.common.typeinfo.TypeInformation<T> |
getOutputType()
已过时。
This method will be removed in future versions as it uses the old type system. It
is recommended to use
getConsumedDataType() instead which uses the new type
system based on DataTypes. 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. |
default TableSchema |
getTableSchema()
已过时。
Returns the schema of the consumed table.
|
default DataType getConsumedDataType()
TableSink.TableSink.@Deprecated default org.apache.flink.api.common.typeinfo.TypeInformation<T> getOutputType()
getConsumedDataType() instead which uses the new type
system based on DataTypes. 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.default TableSchema getTableSchema()
TableSchema of the consumed table.@Deprecated default String[] getFieldNames()
getTableSchema() instead.@Deprecated default org.apache.flink.api.common.typeinfo.TypeInformation<?>[] getFieldTypes()
getTableSchema() instead.@Deprecated TableSink<T> configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
TableSink configured with the field names and types of the
table to emit.fieldNames - The field names of the table to emit.fieldTypes - The field types of the table to emit.TableSink configured with the field names and types of the
table to emit.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.