Interface TableSourceExternalContext
- All Superinterfaces:
AutoCloseable,ExternalContext
External context for table sources.
Comparing with DataStreamSourceExternalContext, the data type of this external context
is fixed as RowData to test functionality of table source.
-
Method Summary
Modifier and TypeMethodDescriptionExternalSystemSplitDataWriter<org.apache.flink.table.data.RowData>createSplitRowDataWriter(TestingSourceSettings sourceOptions, org.apache.flink.table.types.DataType dataType) Create a new split in the external system and return a data writer for writingRowDatacorresponding to the new split.getSourceTableOptions(TestingSourceSettings sourceSettings) Get table options for building DDL of the connector source table.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface org.apache.flink.connector.testframe.external.ExternalContext
getConnectorJarPaths
-
Method Details
-
getSourceTableOptions
Map<String,String> getSourceTableOptions(TestingSourceSettings sourceSettings) throws UnsupportedOperationException Get table options for building DDL of the connector source table.- Throws:
UnsupportedOperationException
-
createSplitRowDataWriter
ExternalSystemSplitDataWriter<org.apache.flink.table.data.RowData> createSplitRowDataWriter(TestingSourceSettings sourceOptions, org.apache.flink.table.types.DataType dataType) Create a new split in the external system and return a data writer for writingRowDatacorresponding to the new split.
-