T
- The return type of the TableSink
.DynamicTableSink
. The new interface
consumes internal data structures. See FLIP-95 for more information.@Deprecated @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.
Modifier and Type | Method and Description |
---|---|
TableSink<T> |
configure(String[] fieldNames,
TypeInformation<?>[] fieldTypes)
Deprecated.
This method will be dropped in future versions. It is recommended to pass a
static schema when instantiating the sink instead.
|
default DataType |
getConsumedDataType()
Deprecated.
Returns the data type consumed by this
TableSink . |
default String[] |
getFieldNames()
Deprecated.
Use the field names of
getTableSchema() instead. |
default TypeInformation<?>[] |
getFieldTypes()
Deprecated.
Use the field types of
getTableSchema() instead. |
default TypeInformation<T> |
getOutputType()
Deprecated.
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()
Deprecated.
Returns the schema of the consumed table.
|
default DataType getConsumedDataType()
TableSink
.TableSink
.@Deprecated default 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 TypeInformation<?>[] getFieldTypes()
getTableSchema()
instead.@Deprecated TableSink<T> configure(String[] fieldNames, 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–2024 The Apache Software Foundation. All rights reserved.