Package | Description |
---|---|
com.mongodb | |
com.mongodb.client | |
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
Modifier and Type | Method and Description |
---|---|
MongoDatabase |
MongoClient.getDatabase(String databaseName) |
Modifier and Type | Method and Description |
---|---|
MongoDatabase |
MongoDatabase.withCodecRegistry(org.bson.codecs.configuration.CodecRegistry codecRegistry)
Create a new MongoDatabase instance with a different codec registry.
|
MongoDatabase |
MongoDatabase.withReadConcern(com.mongodb.ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
MongoDatabase |
MongoDatabase.withReadPreference(com.mongodb.ReadPreference readPreference)
Create a new MongoDatabase instance with a different read preference.
|
MongoDatabase |
MongoDatabase.withWriteConcern(com.mongodb.WriteConcern writeConcern)
Create a new MongoDatabase instance with a different write concern.
|
Modifier and Type | Method and Description |
---|---|
static GridFSBucket |
GridFSBuckets.create(MongoDatabase database)
Create a new GridFS bucket with the default
'fs' bucket name |
static GridFSBucket |
GridFSBuckets.create(MongoDatabase database,
String bucketName)
Create a new GridFS bucket with a custom bucket name
|
Copyright © 2017. All rights reserved.