Class BatchDataGeneratorSource

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.pulsar.io.core.BatchSource<Person>

    public class BatchDataGeneratorSource
    extends java.lang.Object
    implements org.apache.pulsar.io.core.BatchSource<Person>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void discover​(java.util.function.Consumer<byte[]> taskEater)  
      void open​(java.util.Map<java.lang.String,​java.lang.Object> config, org.apache.pulsar.io.core.SourceContext sourceContext)  
      void prepare​(byte[] instanceSplit)  
      org.apache.pulsar.functions.api.Record<Person> readNext()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchDataGeneratorSource

        public BatchDataGeneratorSource()
    • Method Detail

      • open

        public void open​(java.util.Map<java.lang.String,​java.lang.Object> config,
                         org.apache.pulsar.io.core.SourceContext sourceContext)
        Specified by:
        open in interface org.apache.pulsar.io.core.BatchSource<Person>
      • discover

        public void discover​(java.util.function.Consumer<byte[]> taskEater)
        Specified by:
        discover in interface org.apache.pulsar.io.core.BatchSource<Person>
      • prepare

        public void prepare​(byte[] instanceSplit)
        Specified by:
        prepare in interface org.apache.pulsar.io.core.BatchSource<Person>
      • readNext

        public org.apache.pulsar.functions.api.Record<Person> readNext()
                                                                throws java.lang.Exception
        Specified by:
        readNext in interface org.apache.pulsar.io.core.BatchSource<Person>
        Throws:
        java.lang.Exception
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable