Class RowDataGenerator
java.lang.Object
org.apache.flink.connector.datagen.table.types.RowDataGenerator
- All Implemented Interfaces:
Serializable,Iterator<org.apache.flink.table.data.RowData>,org.apache.flink.streaming.api.functions.source.datagen.DataGenerator<org.apache.flink.table.data.RowData>
@Internal
public class RowDataGenerator
extends Object
implements org.apache.flink.streaming.api.functions.source.datagen.DataGenerator<org.apache.flink.table.data.RowData>
Data generator for Flink's internal
RowData type.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRowDataGenerator(org.apache.flink.streaming.api.functions.source.datagen.DataGenerator<?>[] fieldGenerators, List<String> fieldNames, float nullRate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()org.apache.flink.table.data.RowDatanext()voidopen(String name, org.apache.flink.runtime.state.FunctionInitializationContext context, org.apache.flink.api.common.functions.RuntimeContext runtimeContext) voidsnapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
RowDataGenerator
-
-
Method Details
-
open
public void open(String name, org.apache.flink.runtime.state.FunctionInitializationContext context, org.apache.flink.api.common.functions.RuntimeContext runtimeContext) throws Exception - Specified by:
openin interfaceorg.apache.flink.streaming.api.functions.source.datagen.DataGenerator<org.apache.flink.table.data.RowData>- Throws:
Exception
-
snapshotState
public void snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context) throws Exception - Specified by:
snapshotStatein interfaceorg.apache.flink.streaming.api.functions.source.datagen.DataGenerator<org.apache.flink.table.data.RowData>- Throws:
Exception
-
hasNext
public boolean hasNext() -
next
public org.apache.flink.table.data.RowData next()
-