Package | Description |
---|---|
com.mongodb.async.client.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
com.mongodb.client.gridfs.model |
This package contains models for use with GridFS
|
Modifier and Type | Method and Description |
---|---|
private GridFSUploadStream |
GridFSBucketImpl.createGridFSUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
private void |
GridFSBucketImpl.executeUploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
java.lang.String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(java.lang.String filename,
GridFSUploadOptions options)
Opens a AsyncOutputStream that the application can write the contents of the file to.
|
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<java.lang.Void> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback) |
void |
GridFSBucket.uploadFromStream(java.lang.String filename,
AsyncInputStream source,
GridFSUploadOptions options,
SingleResultCallback<ObjectId> callback)
Uploads the contents of the given
AsyncInputStream to a GridFS bucket. |
Modifier and Type | Method and Description |
---|---|
private GridFSUploadStream |
GridFSBucketImpl.createGridFSUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
private void |
GridFSBucketImpl.executeUploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(ClientSession clientSession,
java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(ClientSession clientSession,
java.lang.String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
GridFSUploadStream |
GridFSBucketImpl.openUploadStream(java.lang.String filename,
GridFSUploadOptions options) |
GridFSUploadStream |
GridFSBucket.openUploadStream(java.lang.String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
void |
GridFSBucketImpl.uploadFromStream(BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
void |
GridFSBucket.uploadFromStream(BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
void |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
void |
GridFSBucket.uploadFromStream(ClientSession clientSession,
BsonValue id,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
ObjectId |
GridFSBucketImpl.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
ObjectId |
GridFSBucket.uploadFromStream(ClientSession clientSession,
java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
ObjectId |
GridFSBucketImpl.uploadFromStream(java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options) |
ObjectId |
GridFSBucket.uploadFromStream(java.lang.String filename,
java.io.InputStream source,
GridFSUploadOptions options)
Uploads the contents of the given
InputStream to a GridFS bucket. |
Modifier and Type | Method and Description |
---|---|
GridFSUploadOptions |
GridFSUploadOptions.chunkSizeBytes(java.lang.Integer chunkSizeBytes)
Sets the chunk size in bytes.
|
GridFSUploadOptions |
GridFSUploadOptions.metadata(Document metadata)
Sets metadata to stored alongside the filename in the files collection
|