Class TestGenericObjectSink

java.lang.Object
org.apache.pulsar.tests.integration.io.TestGenericObjectSink
All Implemented Interfaces:
AutoCloseable, Sink<org.apache.pulsar.client.api.schema.GenericObject>

public class TestGenericObjectSink extends Object implements Sink<org.apache.pulsar.client.api.schema.GenericObject>
  • Constructor Details

    • TestGenericObjectSink

      public TestGenericObjectSink()
  • Method Details

    • open

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

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

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