Class JdbcDynamicTableSource

  • All Implemented Interfaces:
    org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown, org.apache.flink.table.connector.source.abilities.SupportsLimitPushDown, org.apache.flink.table.connector.source.abilities.SupportsProjectionPushDown, org.apache.flink.table.connector.source.DynamicTableSource, org.apache.flink.table.connector.source.LookupTableSource, org.apache.flink.table.connector.source.ScanTableSource

    @Internal
    public class JdbcDynamicTableSource
    extends Object
    implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.LookupTableSource, org.apache.flink.table.connector.source.abilities.SupportsProjectionPushDown, org.apache.flink.table.connector.source.abilities.SupportsLimitPushDown, org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown
    A DynamicTableSource for JDBC.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.table.connector.source.DynamicTableSource

        org.apache.flink.table.connector.source.DynamicTableSource.Context, org.apache.flink.table.connector.source.DynamicTableSource.DataStructureConverter
      • Nested classes/interfaces inherited from interface org.apache.flink.table.connector.source.LookupTableSource

        org.apache.flink.table.connector.source.LookupTableSource.LookupContext, org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvider
      • Nested classes/interfaces inherited from interface org.apache.flink.table.connector.source.ScanTableSource

        org.apache.flink.table.connector.source.ScanTableSource.ScanContext, org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider
      • Nested classes/interfaces inherited from interface org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown

        org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown.Result
    • Constructor Detail

      • JdbcDynamicTableSource

        public JdbcDynamicTableSource​(InternalJdbcConnectionOptions options,
                                      JdbcReadOptions readOptions,
                                      int lookupMaxRetryTimes,
                                      @Nullable
                                      org.apache.flink.table.connector.source.lookup.cache.LookupCache cache,
                                      org.apache.flink.table.types.DataType physicalRowDataType)
    • Method Detail

      • getLookupRuntimeProvider

        public org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvider getLookupRuntimeProvider​(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context)
        Specified by:
        getLookupRuntimeProvider in interface org.apache.flink.table.connector.source.LookupTableSource
      • getScanRuntimeProvider

        public org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider​(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext)
        Specified by:
        getScanRuntimeProvider in interface org.apache.flink.table.connector.source.ScanTableSource
      • getChangelogMode

        public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
        Specified by:
        getChangelogMode in interface org.apache.flink.table.connector.source.ScanTableSource
      • supportsNestedProjection

        public boolean supportsNestedProjection()
        Specified by:
        supportsNestedProjection in interface org.apache.flink.table.connector.source.abilities.SupportsProjectionPushDown
      • applyProjection

        public void applyProjection​(int[][] projectedFields,
                                    org.apache.flink.table.types.DataType producedDataType)
        Specified by:
        applyProjection in interface org.apache.flink.table.connector.source.abilities.SupportsProjectionPushDown
      • copy

        public org.apache.flink.table.connector.source.DynamicTableSource copy()
        Specified by:
        copy in interface org.apache.flink.table.connector.source.DynamicTableSource
      • asSummaryString

        public String asSummaryString()
        Specified by:
        asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSource
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • applyLimit

        public void applyLimit​(long limit)
        Specified by:
        applyLimit in interface org.apache.flink.table.connector.source.abilities.SupportsLimitPushDown
      • applyFilters

        public org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown.Result applyFilters​(List<org.apache.flink.table.expressions.ResolvedExpression> filters)
        Specified by:
        applyFilters in interface org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown