public class DataTableSource extends FlinkTableSource
StaticFileStoreSource
or ContinuousFileStoreSource
under
batch mode or change-tracking is disabled. For streaming mode with change-tracking enabled and
FULL scan mode, it will create a HybridSource
of LogHybridSourceFactory.FlinkHybridFirstSource
and kafka log source created by LogSourceProvider
.FlinkTableSource.SplitStatistics
FLINK_INFER_SCAN_PARALLELISM, limit, predicate, projectFields, splitStatistics, table
Constructor and Description |
---|
DataTableSource(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier,
Table table,
boolean streaming,
org.apache.flink.table.factories.DynamicTableFactory.Context context,
LogStoreTableFactory logStoreTableFactory) |
DataTableSource(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier,
Table table,
boolean streaming,
org.apache.flink.table.factories.DynamicTableFactory.Context context,
LogStoreTableFactory logStoreTableFactory,
Predicate predicate,
int[][] projectFields,
Long limit,
org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy,
List<String> dynamicPartitionFilteringFields) |
Modifier and Type | Method and Description |
---|---|
void |
applyDynamicFiltering(List<String> candidateFilterFields) |
String |
asSummaryString() |
DataTableSource |
copy() |
org.apache.flink.table.connector.ChangelogMode |
getChangelogMode() |
org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvider |
getLookupRuntimeProvider(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context) |
org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider |
getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext scanContext) |
boolean |
isStreaming() |
List<String> |
listAcceptedFilterFields() |
void |
pushWatermark(org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy) |
org.apache.flink.table.plan.stats.TableStats |
reportStatistics() |
getTable, inferSourceParallelism, pushFilters, pushLimit, pushProjection, scanSplitsForInference
public DataTableSource(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier, Table table, boolean streaming, org.apache.flink.table.factories.DynamicTableFactory.Context context, @Nullable LogStoreTableFactory logStoreTableFactory)
public DataTableSource(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier, Table table, boolean streaming, org.apache.flink.table.factories.DynamicTableFactory.Context context, @Nullable LogStoreTableFactory logStoreTableFactory, @Nullable Predicate predicate, @Nullable int[][] projectFields, @Nullable Long limit, @Nullable org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy, @Nullable List<String> dynamicPartitionFilteringFields)
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
getChangelogMode
in class FlinkTableSource
public org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext scanContext)
getScanRuntimeProvider
in class FlinkTableSource
public DataTableSource copy()
copy
in class FlinkTableSource
public void pushWatermark(org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy)
pushWatermark
in class FlinkTableSource
public org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvider getLookupRuntimeProvider(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context)
getLookupRuntimeProvider
in class FlinkTableSource
public org.apache.flink.table.plan.stats.TableStats reportStatistics()
reportStatistics
in class FlinkTableSource
public String asSummaryString()
asSummaryString
in class FlinkTableSource
public List<String> listAcceptedFilterFields()
listAcceptedFilterFields
in class FlinkTableSource
public void applyDynamicFiltering(List<String> candidateFilterFields)
applyDynamicFiltering
in class FlinkTableSource
public boolean isStreaming()
isStreaming
in class FlinkTableSource
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.