Interface MongoDbConnector

All Superinterfaces:
AutoCloseable, BlobStoreConnector
All Known Implementing Classes:
MongoDbConnector.Default, MongoDbConnector.GridFs

public interface MongoDbConnector
extends BlobStoreConnector
Connector for MongoDB database and GridFS.

First create a connection to a MongoDB database.

 MongoDatabase database = ...
 BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
 MongoDbConnector.New(database)
 );
 
or
 BlobStoreFileSystem fileSystem = BlobStoreFileSystem.New(
 MongoDbConnector.GridFs(database)
 );