Class MongoSink

java.lang.Object
org.apache.pulsar.io.mongodb.MongoSink
All Implemented Interfaces:
AutoCloseable, Sink<byte[]>

public class MongoSink extends Object implements Sink<byte[]>
The base class for MongoDB sinks. Users need to implement extractKeyValue function to use this sink. This class assumes that the input will be JSON documents.
  • Constructor Details

    • MongoSink

      public MongoSink()
    • MongoSink

      public MongoSink(Supplier<com.mongodb.reactivestreams.client.MongoClient> clientProvider)
  • Method Details