public abstract class KafkaAbstractSink<K,V> extends Object implements Sink<byte[]>
| Constructor and Description |
|---|
KafkaAbstractSink() |
| Modifier and Type | Method and Description |
|---|---|
protected Properties |
beforeCreateProducer(Properties props) |
void |
close() |
abstract KeyValue<K,V> |
extractKeyValue(org.apache.pulsar.functions.api.Record<byte[]> message) |
void |
open(Map<String,Object> config,
SinkContext sinkContext) |
void |
write(org.apache.pulsar.functions.api.Record<byte[]> sourceRecord) |
public void write(org.apache.pulsar.functions.api.Record<byte[]> sourceRecord)
public void close()
throws IOException
close in interface AutoCloseableIOExceptionprotected Properties beforeCreateProducer(Properties props)
public void open(Map<String,Object> config, SinkContext sinkContext) throws Exception
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.