public final class GridFSBuckets
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static GridFSBucket |
create(MongoDatabase database)
Create a new GridFS bucket with the default
'fs' bucket name |
static GridFSBucket |
create(MongoDatabase database,
java.lang.String bucketName)
Create a new GridFS bucket with a custom bucket name
|
public static GridFSBucket create(MongoDatabase database)
'fs' bucket namedatabase - the database instance to use with GridFSpublic static GridFSBucket create(MongoDatabase database, java.lang.String bucketName)
database - the database instance to use with GridFSbucketName - the custom bucket name to use