Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.async.client.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
MongoDatabaseImpl |
Modifier and Type | Method and Description |
---|---|
MongoDatabase |
MongoClientImpl.getDatabase(java.lang.String name) |
MongoDatabase |
MongoClient.getDatabase(java.lang.String name)
Gets the database with the given name.
|
MongoDatabase |
MongoDatabaseImpl.withCodecRegistry(CodecRegistry codecRegistry) |
MongoDatabase |
MongoDatabase.withCodecRegistry(CodecRegistry codecRegistry)
Create a new MongoDatabase instance with a different codec registry.
|
MongoDatabase |
MongoDatabaseImpl.withReadConcern(ReadConcern readConcern) |
MongoDatabase |
MongoDatabase.withReadConcern(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
MongoDatabase |
MongoDatabaseImpl.withReadPreference(ReadPreference readPreference) |
MongoDatabase |
MongoDatabase.withReadPreference(ReadPreference readPreference)
Create a new MongoDatabase instance with a different read preference.
|
MongoDatabase |
MongoDatabaseImpl.withWriteConcern(WriteConcern writeConcern) |
MongoDatabase |
MongoDatabase.withWriteConcern(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,
java.lang.String bucketName)
Create a new GridFS bucket with a custom bucket name
|
private static MongoCollection<Document> |
GridFSBucketImpl.getChunksCollection(MongoDatabase database,
java.lang.String bucketName) |
private static MongoCollection<GridFSFile> |
GridFSBucketImpl.getFilesCollection(MongoDatabase database,
java.lang.String bucketName) |
Constructor and Description |
---|
GridFSBucketImpl(MongoDatabase database) |
GridFSBucketImpl(MongoDatabase database,
java.lang.String bucketName) |