Package | Description |
---|---|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
GridFSBucketImpl |
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
|
GridFSBucket |
GridFSBucketImpl.withChunkSizeBytes(int chunkSizeBytes) |
GridFSBucket |
GridFSBucket.withChunkSizeBytes(int chunkSizeBytes)
Create a new GridFSBucket instance with a new chunk size in bytes.
|
GridFSBucket |
GridFSBucketImpl.withReadConcern(ReadConcern readConcern) |
GridFSBucket |
GridFSBucket.withReadConcern(ReadConcern readConcern)
Create a new GridFSBucket instance with a different read concern.
|
GridFSBucket |
GridFSBucketImpl.withReadPreference(ReadPreference readPreference) |
GridFSBucket |
GridFSBucket.withReadPreference(ReadPreference readPreference)
Create a new GridFSBucket instance with a different read preference.
|
GridFSBucket |
GridFSBucketImpl.withWriteConcern(WriteConcern writeConcern) |
GridFSBucket |
GridFSBucket.withWriteConcern(WriteConcern writeConcern)
Create a new GridFSBucket instance with a different write concern.
|