@Experimental public interface DataGenerator<T> extends Serializable, Iterator<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
open(String name,
org.apache.flink.runtime.state.FunctionInitializationContext context,
org.apache.flink.api.common.functions.RuntimeContext runtimeContext)
Open and initialize state for
DataGenerator. |
default void |
snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context)
Snapshot state for
DataGenerator. |
forEachRemaining, hasNext, next, removevoid open(String name, org.apache.flink.runtime.state.FunctionInitializationContext context, org.apache.flink.api.common.functions.RuntimeContext runtimeContext) throws Exception
DataGenerator. See CheckpointedFunction.initializeState(org.apache.flink.runtime.state.FunctionInitializationContext).name - The state of DataGenerator should related to this name, make sure the
name of state is different.Exceptiondefault void snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context)
throws Exception
DataGenerator. See CheckpointedFunction.snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext).ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.