Package com.mongodb.client.gridfs
Class GridFSBuckets
java.lang.Object
com.mongodb.client.gridfs.GridFSBuckets
A factory for GridFSBucket instances.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic GridFSBucket
create
(MongoDatabase database) Create a new GridFS bucket with the default'fs'
bucket namestatic GridFSBucket
create
(MongoDatabase database, String bucketName) Create a new GridFS bucket with a custom bucket name
-
Method Details
-
create
Create a new GridFS bucket with the default'fs'
bucket name- Parameters:
database
- the database instance to use with GridFS- Returns:
- the GridFSBucket
-
create
Create a new GridFS bucket with a custom bucket name- Parameters:
database
- the database instance to use with GridFSbucketName
- the custom bucket name to use- Returns:
- the GridFSBucket
-