Interface TableSourceExternalContext
-
- All Superinterfaces:
AutoCloseable,ExternalContext
@Experimental public interface TableSourceExternalContext extends ExternalContext
External context for table sources.Comparing with
DataStreamSourceExternalContext, the data type of this external context is fixed asRowDatato test functionality of table source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.Map<String,String>getSourceTableOptions(TestingSourceSettings sourceSettings)Get table options for building DDL of the connector source table.-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface org.apache.flink.connector.testframe.external.ExternalContext
getConnectorJarPaths
-
-
-
-
Method Detail
-
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.
-
-