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(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
GridFSBucket |
GridFSBucket.withReadPreference(ReadPreference readPreference)
Create a new GridFSBucket instance with a different read preference.
|
GridFSBucket |
GridFSBucket.withWriteConcern(WriteConcern writeConcern)
Create a new GridFSBucket instance with a different write concern.
|
Copyright © 2016. All Rights Reserved.