Class EventsGeneratorFunction
- java.lang.Object
-
- org.apache.flink.streaming.examples.statemachine.generator.EventsGeneratorFunction
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.connector.datagen.source.GeneratorFunction<Long,Event>
public class EventsGeneratorFunction extends Object implements org.apache.flink.connector.datagen.source.GeneratorFunction<Long,Event>
A generator function that produces the events on the fly. Useful for self-contained demos.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventsGeneratorFunction(double errorProbability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eventmap(Long value)voidopen(org.apache.flink.api.connector.source.SourceReaderContext readerContext)
-
-
-
Method Detail
-
open
public void open(org.apache.flink.api.connector.source.SourceReaderContext readerContext) throws Exception
-
-