Class JdbcDynamicTableSource
- java.lang.Object
-
- org.apache.flink.connector.jdbc.table.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
ADynamicTableSourcefor 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
-
-
Constructor Summary
Constructors Constructor Description JdbcDynamicTableSource(InternalJdbcConnectionOptions options, JdbcReadOptions readOptions, int lookupMaxRetryTimes, org.apache.flink.table.connector.source.lookup.cache.LookupCache cache, org.apache.flink.table.types.DataType physicalRowDataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.table.connector.source.abilities.SupportsFilterPushDown.ResultapplyFilters(List<org.apache.flink.table.expressions.ResolvedExpression> filters)voidapplyLimit(long limit)voidapplyProjection(int[][] projectedFields, org.apache.flink.table.types.DataType producedDataType)StringasSummaryString()org.apache.flink.table.connector.source.DynamicTableSourcecopy()booleanequals(Object o)org.apache.flink.table.connector.ChangelogModegetChangelogMode()org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvidergetLookupRuntimeProvider(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context)org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvidergetScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext runtimeProviderContext)inthashCode()booleansupportsNestedProjection()
-
-
-
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:
getLookupRuntimeProviderin interfaceorg.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:
getScanRuntimeProviderin interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
getChangelogMode
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
- Specified by:
getChangelogModein interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
supportsNestedProjection
public boolean supportsNestedProjection()
- Specified by:
supportsNestedProjectionin interfaceorg.apache.flink.table.connector.source.abilities.SupportsProjectionPushDown
-
applyProjection
public void applyProjection(int[][] projectedFields, org.apache.flink.table.types.DataType producedDataType)- Specified by:
applyProjectionin interfaceorg.apache.flink.table.connector.source.abilities.SupportsProjectionPushDown
-
copy
public org.apache.flink.table.connector.source.DynamicTableSource copy()
- Specified by:
copyin interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
asSummaryString
public String asSummaryString()
- Specified by:
asSummaryStringin interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
applyLimit
public void applyLimit(long limit)
- Specified by:
applyLimitin interfaceorg.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:
applyFiltersin interfaceorg.apache.flink.table.connector.source.abilities.SupportsFilterPushDown
-
-