Class 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 Detail

      • MongoSink

        public MongoSink()
      • MongoSink

        public MongoSink​(Supplier<com.mongodb.reactivestreams.client.MongoClient> clientProvider)