@Internal public class DataGeneratorMapper<A,B> extends Object implements DataGenerator<B>
DataGenerator
.Constructor and Description |
---|
DataGeneratorMapper(DataGenerator<A> generator,
SerializableFunction<A,B> mapper) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
B |
next() |
void |
open(String name,
FunctionInitializationContext context,
RuntimeContext runtimeContext)
Open and initialize state for
DataGenerator . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
snapshotState
forEachRemaining, remove
public DataGeneratorMapper(DataGenerator<A> generator, SerializableFunction<A,B> mapper)
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<B>
name
- The state of DataGenerator
should related to this name, make sure the
name of state is different.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.