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