Interface TableSinkExternalContext
- All Superinterfaces:
AutoCloseable,ExternalContext
External context for table sinks.
Comparing with DataStreamSinkExternalContext, the data type of this external context
is fixed as RowData to test functionality of table source.
-
Method Summary
Modifier and TypeMethodDescriptionExternalSystemDataReader<org.apache.flink.table.data.RowData>createSinkRowDataReader(TestingSinkSettings sinkOptions, org.apache.flink.table.types.DataType dataType) Create a new split in the external system and return a data writer corresponding to the new split.getSinkTableOptions(TestingSinkSettings sinkSettings) Get table options for building DDL of the connector sink table.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface org.apache.flink.connector.testframe.external.ExternalContext
getConnectorJarPaths
-
Method Details
-
getSinkTableOptions
Map<String,String> getSinkTableOptions(TestingSinkSettings sinkSettings) throws UnsupportedOperationException Get table options for building DDL of the connector sink table.- Throws:
UnsupportedOperationException
-
createSinkRowDataReader
ExternalSystemDataReader<org.apache.flink.table.data.RowData> createSinkRowDataReader(TestingSinkSettings sinkOptions, org.apache.flink.table.types.DataType dataType) Create a new split in the external system and return a data writer corresponding to the new split.
-