Class DataGenTableSource
java.lang.Object
org.apache.flink.connector.datagen.table.DataGenTableSource
- All Implemented Interfaces:
org.apache.flink.table.connector.source.abilities.SupportsLimitPushDown,org.apache.flink.table.connector.source.DynamicTableSource,org.apache.flink.table.connector.source.ScanTableSource
@Internal
public class DataGenTableSource
extends Object
implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsLimitPushDown
A
StreamTableSource that emits generated data rows.-
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.DataStructureConverterNested 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 -
Constructor Summary
ConstructorsConstructorDescriptionDataGenTableSource(org.apache.flink.streaming.api.functions.source.datagen.DataGenerator<?>[] fieldGenerators, String tableName, org.apache.flink.table.types.DataType rowDataType, long rowsPerSecond, Long numberOfRows, Integer parallelism) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyLimit(long limit) org.apache.flink.table.connector.source.DynamicTableSourcecopy()org.apache.flink.streaming.api.functions.source.datagen.DataGeneratorSource<org.apache.flink.table.data.RowData>org.apache.flink.table.connector.ChangelogModeorg.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvidergetScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext context)
-
Constructor Details
-
DataGenTableSource
-
-
Method Details
-
getScanRuntimeProvider
public org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext context) - Specified by:
getScanRuntimeProviderin interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
createSource
@VisibleForTesting public org.apache.flink.streaming.api.functions.source.datagen.DataGeneratorSource<org.apache.flink.table.data.RowData> createSource() -
copy
public org.apache.flink.table.connector.source.DynamicTableSource copy()- Specified by:
copyin interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
asSummaryString
- Specified by:
asSummaryStringin interfaceorg.apache.flink.table.connector.source.DynamicTableSource
-
getChangelogMode
public org.apache.flink.table.connector.ChangelogMode getChangelogMode()- Specified by:
getChangelogModein interfaceorg.apache.flink.table.connector.source.ScanTableSource
-
applyLimit
public void applyLimit(long limit) - Specified by:
applyLimitin interfaceorg.apache.flink.table.connector.source.abilities.SupportsLimitPushDown
-