@Internal public class RowDataGenerator extends Object implements DataGenerator<RowData>
RowData
type.Constructor and Description |
---|
RowDataGenerator(DataGenerator<?>[] fieldGenerators,
List<String> fieldNames,
float nullRate) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
RowData |
next() |
void |
open(String name,
FunctionInitializationContext context,
RuntimeContext runtimeContext)
Open and initialize state for
DataGenerator . |
void |
snapshotState(FunctionSnapshotContext context)
Snapshot state for
DataGenerator . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public RowDataGenerator(DataGenerator<?>[] fieldGenerators, List<String> fieldNames, float nullRate)
public void open(String name, FunctionInitializationContext context, RuntimeContext runtimeContext) throws Exception
DataGenerator
DataGenerator
. See CheckpointedFunction.initializeState(org.apache.flink.runtime.state.FunctionInitializationContext)
.open
in interface DataGenerator<RowData>
name
- The state of DataGenerator
should related to this name, make sure the
name of state is different.Exception
public void snapshotState(FunctionSnapshotContext context) throws Exception
DataGenerator
DataGenerator
. See CheckpointedFunction.snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext)
.snapshotState
in interface DataGenerator<RowData>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.