public final class GridFSUploadOptions
extends java.lang.Object
Constructor and Description |
---|
GridFSUploadOptions()
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
GridFSUploadOptions |
chunkSizeBytes(java.lang.Integer chunkSizeBytes)
Sets the chunk size in bytes.
|
java.lang.Integer |
getChunkSizeBytes()
The number of bytes per chunk of this file.
|
Document |
getMetadata()
Returns any user provided data for the 'metadata' field of the files collection document.
|
GridFSUploadOptions |
metadata(Document metadata)
Sets metadata to stored alongside the filename in the files collection
|
@Nullable public java.lang.Integer getChunkSizeBytes()
If no value has been set then, the chunkSizeBytes from the GridFSBucket will be used.
public GridFSUploadOptions chunkSizeBytes(@Nullable java.lang.Integer chunkSizeBytes)
chunkSizeBytes
- the number of bytes per chunk for the uploaded file@Nullable public Document getMetadata()
public GridFSUploadOptions metadata(@Nullable Document metadata)
metadata
- the metadata to be storedCopyright © 2010 - 2020 Adobe. All Rights Reserved