Class 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 Detail

      • EventsGeneratorFunction

        public EventsGeneratorFunction​(double errorProbability)
    • Method Detail

      • open

        public void open​(org.apache.flink.api.connector.source.SourceReaderContext readerContext)
                  throws Exception
        Specified by:
        open in interface org.apache.flink.connector.datagen.source.GeneratorFunction<Long,​Event>
        Throws:
        Exception
      • map

        public Event map​(Long value)
                  throws Exception
        Specified by:
        map in interface org.apache.flink.connector.datagen.source.GeneratorFunction<Long,​Event>
        Throws:
        Exception