Class TestGenericObjectSink

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>

    public class TestGenericObjectSink
    extends java.lang.Object
    implements org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
    • 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 sourceContext)  
      void write​(org.apache.pulsar.functions.api.Record<org.apache.pulsar.client.api.schema.GenericObject> record)  
      • Methods inherited from class java.lang.Object

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

      • TestGenericObjectSink

        public TestGenericObjectSink()
    • Method Detail

      • open

        public void open​(java.util.Map<java.lang.String,​java.lang.Object> config,
                         org.apache.pulsar.io.core.SinkContext sourceContext)
                  throws java.lang.Exception
        Specified by:
        open in interface org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
        Throws:
        java.lang.Exception
      • write

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

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