public class MongoSink extends Object implements Sink<byte[]>
| Constructor and Description |
|---|
MongoSink() |
MongoSink(Supplier<com.mongodb.reactivestreams.client.MongoClient> clientProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(Map<String,Object> config,
SinkContext sinkContext) |
void |
write(org.apache.pulsar.functions.api.Record<byte[]> record) |
public MongoSink()
public MongoSink(Supplier<com.mongodb.reactivestreams.client.MongoClient> clientProvider)
public void open(Map<String,Object> config, SinkContext sinkContext) throws Exception
public void write(org.apache.pulsar.functions.api.Record<byte[]> record)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.