public abstract class BaseDataTableSource extends FlinkTableSource implements org.apache.flink.table.connector.source.LookupTableSource, org.apache.flink.table.connector.source.abilities.SupportsWatermarkPushDown, org.apache.flink.table.connector.source.abilities.SupportsAggregatePushDown
StaticFileStoreSource or ContinuousFileStoreSource under
batch mode or streaming mode.FlinkTableSource.SplitStatisticsorg.apache.flink.table.connector.source.LookupTableSource.LookupContext, org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProviderorg.apache.flink.table.connector.source.DynamicTableSource.Context, org.apache.flink.table.connector.source.DynamicTableSource.DataStructureConverter| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.table.factories.DynamicTableFactory.Context |
context |
protected Long |
countPushed |
protected LogStoreTableFactory |
logStoreTableFactory |
protected boolean |
streaming |
protected org.apache.flink.table.catalog.ObjectIdentifier |
tableIdentifier |
protected org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> |
watermarkStrategy |
FLINK_INFER_SCAN_PARALLELISM, limit, predicate, projectFields, splitStatistics, table| Constructor and Description |
|---|
BaseDataTableSource(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,
Long countPushed) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyAggregates(List<int[]> groupingSets,
List<org.apache.flink.table.expressions.AggregateExpression> aggregateExpressions,
org.apache.flink.table.types.DataType producedDataType) |
void |
applyWatermark(org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy) |
String |
asSummaryString() |
protected abstract List<String> |
dynamicPartitionFilteringFields() |
org.apache.flink.table.connector.ChangelogMode |
getChangelogMode() |
protected FileStoreLookupFunction |
getFileStoreLookupFunction(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context,
Table table,
int[] projection,
int[] joinKey) |
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() |
applyFilters, applyLimit, applyProjection, getTable, inferSourceParallelism, scanSplitsForInference, supportsNestedProjectionprotected final org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier
protected final boolean streaming
protected final org.apache.flink.table.factories.DynamicTableFactory.Context context
@Nullable protected final LogStoreTableFactory logStoreTableFactory
@Nullable protected org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy
public BaseDataTableSource(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
Long countPushed)
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()
getChangelogMode in interface org.apache.flink.table.connector.source.ScanTableSourcepublic org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext scanContext)
getScanRuntimeProvider in interface org.apache.flink.table.connector.source.ScanTableSourcepublic void applyWatermark(org.apache.flink.api.common.eventtime.WatermarkStrategy<org.apache.flink.table.data.RowData> watermarkStrategy)
applyWatermark in interface org.apache.flink.table.connector.source.abilities.SupportsWatermarkPushDownpublic org.apache.flink.table.connector.source.LookupTableSource.LookupRuntimeProvider getLookupRuntimeProvider(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context)
getLookupRuntimeProvider in interface org.apache.flink.table.connector.source.LookupTableSourceprotected FileStoreLookupFunction getFileStoreLookupFunction(org.apache.flink.table.connector.source.LookupTableSource.LookupContext context, Table table, int[] projection, int[] joinKey)
public boolean applyAggregates(List<int[]> groupingSets, List<org.apache.flink.table.expressions.AggregateExpression> aggregateExpressions, org.apache.flink.table.types.DataType producedDataType)
applyAggregates in interface org.apache.flink.table.connector.source.abilities.SupportsAggregatePushDownpublic String asSummaryString()
asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic boolean isStreaming()
isStreaming in class FlinkTableSourceCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.