Class TestGenericObjectSink
java.lang.Object
org.apache.pulsar.tests.integration.io.TestGenericObjectSink
- All Implemented Interfaces:
AutoCloseable,org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
public class TestGenericObjectSink
extends Object
implements org.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TestGenericObjectSink
public TestGenericObjectSink()
-
-
Method Details
-
open
public void open(Map<String, Object> config, org.apache.pulsar.io.core.SinkContext sourceContext) throws Exception- Specified by:
openin interfaceorg.apache.pulsar.io.core.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:
writein interfaceorg.apache.pulsar.io.core.Sink<org.apache.pulsar.client.api.schema.GenericObject>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-