Search in sources :

Example 1 with ScanRuntimeProvider

use of org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider in project flink by apache.

the class DynamicSourceUtils method validateScanSource.

private static void validateScanSource(String tableDebugName, ResolvedSchema schema, ScanTableSource scanSource, boolean isBatchMode, ReadableConfig config) {
    final ScanRuntimeProvider provider = scanSource.getScanRuntimeProvider(ScanRuntimeProviderContext.INSTANCE);
    final ChangelogMode changelogMode = scanSource.getChangelogMode();
    validateWatermarks(tableDebugName, schema);
    if (isBatchMode) {
        validateScanSourceForBatch(tableDebugName, changelogMode, provider);
    } else {
        validateScanSourceForStreaming(tableDebugName, schema, scanSource, changelogMode, config);
    }
}
Also used : ChangelogMode(org.apache.flink.table.connector.ChangelogMode) ScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider)

Aggregations

ChangelogMode (org.apache.flink.table.connector.ChangelogMode)1 ScanRuntimeProvider (org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider)1