Class BatchDataGeneratorPrintSink

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void open​(java.util.Map<java.lang.String,​java.lang.Object> config, org.apache.pulsar.io.core.SinkContext sinkContext)  
      void write​(org.apache.pulsar.functions.api.Record<Person> record)  
      • Methods inherited from class java.lang.Object

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

      • BatchDataGeneratorPrintSink

        public BatchDataGeneratorPrintSink()
    • Method Detail

      • open

        public void open​(java.util.Map<java.lang.String,​java.lang.Object> config,
                         org.apache.pulsar.io.core.SinkContext sinkContext)
        Specified by:
        open in interface org.apache.pulsar.io.core.Sink<Person>
      • write

        public void write​(org.apache.pulsar.functions.api.Record<Person> record)
        Specified by:
        write in interface org.apache.pulsar.io.core.Sink<Person>
      • close

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