Package | Description |
---|---|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
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
|
GridFSBucket |
GridFSBucket.withChunkSizeBytes(int chunkSizeBytes)
Create a new GridFSBucket instance with a new chunk size in bytes.
|
GridFSBucket |
GridFSBucket.withReadConcern(com.mongodb.ReadConcern readConcern)
Create a new GridFSBucket instance with a different read concern.
|
GridFSBucket |
GridFSBucket.withReadPreference(com.mongodb.ReadPreference readPreference)
Create a new GridFSBucket instance with a different read preference.
|
GridFSBucket |
GridFSBucket.withWriteConcern(com.mongodb.WriteConcern writeConcern)
Create a new GridFSBucket instance with a different write concern.
|
Copyright © 2017. All rights reserved.