@Internal public class DataGenTableSource extends Object implements org.apache.flink.table.connector.source.ScanTableSource, org.apache.flink.table.connector.source.abilities.SupportsLimitPushDown
StreamTableSource that emits each number from a given interval exactly once, possibly
in parallel. See StatefulSequenceSource.| Constructor and Description |
|---|
DataGenTableSource(org.apache.flink.streaming.api.functions.source.datagen.DataGenerator<?>[] fieldGenerators,
String tableName,
org.apache.flink.table.types.DataType rowDataType,
long rowsPerSecond,
Long numberOfRows) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyLimit(long limit) |
String |
asSummaryString() |
org.apache.flink.table.connector.source.DynamicTableSource |
copy() |
org.apache.flink.streaming.api.functions.source.datagen.DataGeneratorSource<org.apache.flink.table.data.RowData> |
createSource() |
org.apache.flink.table.connector.ChangelogMode |
getChangelogMode() |
org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider |
getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext context) |
public org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider getScanRuntimeProvider(org.apache.flink.table.connector.source.ScanTableSource.ScanContext context)
getScanRuntimeProvider in interface org.apache.flink.table.connector.source.ScanTableSource@VisibleForTesting public org.apache.flink.streaming.api.functions.source.datagen.DataGeneratorSource<org.apache.flink.table.data.RowData> createSource()
public org.apache.flink.table.connector.source.DynamicTableSource copy()
copy in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic String asSummaryString()
asSummaryString in interface org.apache.flink.table.connector.source.DynamicTableSourcepublic org.apache.flink.table.connector.ChangelogMode getChangelogMode()
getChangelogMode in interface org.apache.flink.table.connector.source.ScanTableSourcepublic void applyLimit(long limit)
applyLimit in interface org.apache.flink.table.connector.source.abilities.SupportsLimitPushDownCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.