public class MongoGridFsClient extends Object
Modifier and Type | Field and Description |
---|---|
static TypeArg<MongoGridFsClient> |
__TYPE_ARG |
Constructor and Description |
---|
MongoGridFsClient(io.vertx.ext.mongo.MongoGridFsClient delegate) |
MongoGridFsClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client and release its resources
|
io.reactivex.rxjava3.core.Completable |
delete(String id)
Deletes a file by it's ID
|
io.reactivex.rxjava3.core.Single<Long> |
downloadByFileName(WriteStream<Buffer> stream,
String fileName) |
io.reactivex.rxjava3.core.Single<Long> |
downloadByFileNameWithOptions(WriteStream<Buffer> stream,
String fileName,
io.vertx.ext.mongo.GridFsDownloadOptions options) |
io.reactivex.rxjava3.core.Single<Long> |
downloadById(WriteStream<Buffer> stream,
String id) |
io.reactivex.rxjava3.core.Single<Long> |
downloadFile(String fileName)
Downloads a file.
|
io.reactivex.rxjava3.core.Single<Long> |
downloadFileAs(String fileName,
String newFileName)
Downloads a file and gives it a new name.
|
io.reactivex.rxjava3.core.Single<Long> |
downloadFileByID(String id,
String fileName)
Downloads a file using the ID generated by GridFs.
|
io.reactivex.rxjava3.core.Completable |
drop()
Drops the entire file bucket with all of its contents
|
boolean |
equals(Object o) |
io.reactivex.rxjava3.core.Single<List<String>> |
findAllIds()
Finds all file ids in the bucket
|
io.reactivex.rxjava3.core.Single<List<String>> |
findIds(io.vertx.core.json.JsonObject query)
Finds all file ids that match a query.
|
io.vertx.ext.mongo.MongoGridFsClient |
getDelegate() |
int |
hashCode() |
static MongoGridFsClient |
newInstance(io.vertx.ext.mongo.MongoGridFsClient arg) |
io.reactivex.rxjava3.core.Completable |
rxDelete(String id)
Deletes a file by it's ID
|
io.reactivex.rxjava3.core.Single<Long> |
rxDownloadByFileName(WriteStream<Buffer> stream,
String fileName) |
io.reactivex.rxjava3.core.Single<Long> |
rxDownloadByFileNameWithOptions(WriteStream<Buffer> stream,
String fileName,
io.vertx.ext.mongo.GridFsDownloadOptions options) |
io.reactivex.rxjava3.core.Single<Long> |
rxDownloadById(WriteStream<Buffer> stream,
String id) |
io.reactivex.rxjava3.core.Single<Long> |
rxDownloadFile(String fileName)
Downloads a file.
|
io.reactivex.rxjava3.core.Single<Long> |
rxDownloadFileAs(String fileName,
String newFileName)
Downloads a file and gives it a new name.
|
io.reactivex.rxjava3.core.Single<Long> |
rxDownloadFileByID(String id,
String fileName)
Downloads a file using the ID generated by GridFs.
|
io.reactivex.rxjava3.core.Completable |
rxDrop()
Drops the entire file bucket with all of its contents
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxFindAllIds()
Finds all file ids in the bucket
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxFindIds(io.vertx.core.json.JsonObject query)
Finds all file ids that match a query.
|
io.reactivex.rxjava3.core.Single<String> |
rxUploadByFileName(io.reactivex.rxjava3.core.Flowable<Buffer> stream,
String fileName) |
io.reactivex.rxjava3.core.Single<String> |
rxUploadByFileNameWithOptions(io.reactivex.rxjava3.core.Flowable<Buffer> stream,
String fileName,
io.vertx.ext.mongo.GridFsUploadOptions options) |
io.reactivex.rxjava3.core.Single<String> |
rxUploadFile(String fileName)
Upload a file to gridfs
|
io.reactivex.rxjava3.core.Single<String> |
rxUploadFileWithOptions(String fileName,
io.vertx.ext.mongo.GridFsUploadOptions options)
Upload a file to gridfs with options
|
String |
toString() |
io.reactivex.rxjava3.core.Single<String> |
uploadByFileName(io.reactivex.rxjava3.core.Flowable<Buffer> stream,
String fileName) |
io.reactivex.rxjava3.core.Single<String> |
uploadByFileNameWithOptions(io.reactivex.rxjava3.core.Flowable<Buffer> stream,
String fileName,
io.vertx.ext.mongo.GridFsUploadOptions options) |
io.reactivex.rxjava3.core.Single<String> |
uploadFile(String fileName)
Upload a file to gridfs
|
io.reactivex.rxjava3.core.Single<String> |
uploadFileWithOptions(String fileName,
io.vertx.ext.mongo.GridFsUploadOptions options)
Upload a file to gridfs with options
|
public static final TypeArg<MongoGridFsClient> __TYPE_ARG
public MongoGridFsClient(io.vertx.ext.mongo.MongoGridFsClient delegate)
public MongoGridFsClient(Object delegate)
public io.vertx.ext.mongo.MongoGridFsClient getDelegate()
public io.reactivex.rxjava3.core.Completable delete(String id)
id
- the identifier of the filepublic io.reactivex.rxjava3.core.Completable rxDelete(String id)
id
- the identifier of the filepublic io.reactivex.rxjava3.core.Single<Long> downloadByFileName(WriteStream<Buffer> stream, String fileName)
public io.reactivex.rxjava3.core.Single<Long> rxDownloadByFileName(WriteStream<Buffer> stream, String fileName)
public io.reactivex.rxjava3.core.Single<Long> downloadByFileNameWithOptions(WriteStream<Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options)
public io.reactivex.rxjava3.core.Single<Long> rxDownloadByFileNameWithOptions(WriteStream<Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsDownloadOptions options)
public io.reactivex.rxjava3.core.Single<Long> downloadById(WriteStream<Buffer> stream, String id)
public io.reactivex.rxjava3.core.Single<Long> rxDownloadById(WriteStream<Buffer> stream, String id)
public io.reactivex.rxjava3.core.Single<Long> downloadFile(String fileName)
fileName
- the name of the file to downloadpublic io.reactivex.rxjava3.core.Single<Long> rxDownloadFile(String fileName)
fileName
- the name of the file to downloadpublic io.reactivex.rxjava3.core.Single<Long> downloadFileAs(String fileName, String newFileName)
fileName
- the name of the file to downloadnewFileName
- the name the file should be saved aspublic io.reactivex.rxjava3.core.Single<Long> rxDownloadFileAs(String fileName, String newFileName)
fileName
- the name of the file to downloadnewFileName
- the name the file should be saved aspublic io.reactivex.rxjava3.core.Single<Long> downloadFileByID(String id, String fileName)
id
- the GridFs Object ID of the file to downloadfileName
- public io.reactivex.rxjava3.core.Single<Long> rxDownloadFileByID(String id, String fileName)
id
- the GridFs Object ID of the file to downloadfileName
- public io.reactivex.rxjava3.core.Completable drop()
public io.reactivex.rxjava3.core.Completable rxDrop()
public io.reactivex.rxjava3.core.Single<List<String>> findAllIds()
public io.reactivex.rxjava3.core.Single<List<String>> rxFindAllIds()
public io.reactivex.rxjava3.core.Single<List<String>> findIds(io.vertx.core.json.JsonObject query)
query
- a bson query expressed as json that will be used to match filespublic io.reactivex.rxjava3.core.Single<List<String>> rxFindIds(io.vertx.core.json.JsonObject query)
query
- a bson query expressed as json that will be used to match filespublic io.reactivex.rxjava3.core.Single<String> uploadByFileName(io.reactivex.rxjava3.core.Flowable<Buffer> stream, String fileName)
public io.reactivex.rxjava3.core.Single<String> rxUploadByFileName(io.reactivex.rxjava3.core.Flowable<Buffer> stream, String fileName)
public io.reactivex.rxjava3.core.Single<String> uploadByFileNameWithOptions(io.reactivex.rxjava3.core.Flowable<Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options)
public io.reactivex.rxjava3.core.Single<String> rxUploadByFileNameWithOptions(io.reactivex.rxjava3.core.Flowable<Buffer> stream, String fileName, io.vertx.ext.mongo.GridFsUploadOptions options)
public io.reactivex.rxjava3.core.Single<String> uploadFile(String fileName)
fileName
- the name of the file to store in gridfspublic io.reactivex.rxjava3.core.Single<String> rxUploadFile(String fileName)
fileName
- the name of the file to store in gridfspublic io.reactivex.rxjava3.core.Single<String> uploadFileWithOptions(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options)
fileName
- the name of the file to store in gridfsoptions
- GridFsUploadOptions
for specifying metadata and chunk sizepublic io.reactivex.rxjava3.core.Single<String> rxUploadFileWithOptions(String fileName, io.vertx.ext.mongo.GridFsUploadOptions options)
fileName
- the name of the file to store in gridfsoptions
- GridFsUploadOptions
for specifying metadata and chunk sizepublic void close()
public static MongoGridFsClient newInstance(io.vertx.ext.mongo.MongoGridFsClient arg)
Copyright © 2021 Eclipse. All rights reserved.