public interface ReactiveGridFsOperations
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Mono<Void> | delete(Query query)Deletes all files matching the given  Query. | 
| reactor.core.publisher.Flux<com.mongodb.client.gridfs.model.GridFSFile> | find(Query query)Returns a  Fluxemitting all files matching the given query. | 
| reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> | findFirst(Query query)Returns a  Monoemitting the fristGridFSFilematching the given
 query orMono.empty()in case no file matches. | 
| reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> | findOne(Query query)Returns a  Monoemitting a singleGridFSFilematching the given
 query orMono.empty()in case no file matches. | 
| reactor.core.publisher.Mono<ReactiveGridFsResource> | getResource(com.mongodb.client.gridfs.model.GridFSFile file) | 
| reactor.core.publisher.Mono<ReactiveGridFsResource> | getResource(String filename)Returns a  Monoemitting theReactiveGridFsResourcewith the given file name. | 
| reactor.core.publisher.Flux<ReactiveGridFsResource> | getResources(String filenamePattern)Returns a  Fluxemitting allReactiveGridFsResources matching the given file name pattern. | 
| <T> reactor.core.publisher.Mono<T> | store(GridFsObject<T,org.reactivestreams.Publisher<DataBuffer>> upload) | 
| default reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     org.bson.Document metadata)Stores the given content into a file applying the given metadata. | 
| default reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     Object metadata)Stores the given content into a file applying the given metadata. | 
| default reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     String filename)Stores the given content into a file with the given name. | 
| default reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     String filename,
     org.bson.Document metadata)Stores the given content into a file with the given name using the given metadata. | 
| default reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     String filename,
     Object metadata)Stores the given content into a file with the given name using the given metadata. | 
| default reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     String filename,
     String contentType)Stores the given content into a file with the given name and content type. | 
| default reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     String filename,
     String contentType,
     org.bson.Document metadata)Stores the given content into a file with the given name and content type using the given metadata. | 
| reactor.core.publisher.Mono<org.bson.types.ObjectId> | store(org.reactivestreams.Publisher<DataBuffer> content,
     String filename,
     String contentType,
     Object metadata)Stores the given content into a file with the given name and content type using the given metadata. | 
default reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, String filename)
content - must not be null.filename - must not be null or empty.Mono emitting the ObjectId of the GridFSFile just
         created.default reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, @Nullable Object metadata)
content - must not be null.metadata - can be null.Mono emitting the ObjectId of the GridFSFile just
         created.default reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, @Nullable org.bson.Document metadata)
content - must not be null.metadata - can be null.Mono emitting the ObjectId of the GridFSFile just
         created.default reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, @Nullable String filename, @Nullable String contentType)
content - must not be null.filename - must not be null or empty.contentType - can be null.Mono emitting the ObjectId of the GridFSFile just
         created.default reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, @Nullable String filename, @Nullable Object metadata)
content - must not be null.filename - can be null or empty.metadata - can be null.Mono emitting the ObjectId of the GridFSFile just
         created.reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, @Nullable String filename, @Nullable String contentType, @Nullable Object metadata)
content - must not be null.filename - must not be null or empty.contentType - can be null.metadata - can be nullMono emitting the ObjectId of the GridFSFile just
         created.default reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, @Nullable String filename, @Nullable org.bson.Document metadata)
content - must not be null.filename - must not be null or empty.metadata - can be null.Mono emitting the ObjectId of the GridFSFile just
         created.default reactor.core.publisher.Mono<org.bson.types.ObjectId> store(org.reactivestreams.Publisher<DataBuffer> content, @Nullable String filename, @Nullable String contentType, @Nullable org.bson.Document metadata)
content - must not be null.filename - must not be null or empty.contentType - can be null. If not empty, may override content type within metadata.metadata - can be null.Mono emitting the ObjectId of the GridFSFile just
         created.<T> reactor.core.publisher.Mono<T> store(GridFsObject<T,org.reactivestreams.Publisher<DataBuffer>> upload)
GridFsObject, likely a GridFsUpload, into into a file with given
 name. If the GridFsObject.getFileId() is set, the file will be stored
 with that id, otherwise the server auto creates a new id. T - id type of the underlying GridFSFileupload - the GridFsObject (most likely a GridFsUpload) to be stored.Mono emitting the id of the stored file which is either an auto created value or
         GridFsObject.getFileId().reactor.core.publisher.Flux<com.mongodb.client.gridfs.model.GridFSFile> find(Query query)
Flux emitting all files matching the given query. Sort criteria defined at the Query will not be regarded as MongoDB
 does not support ordering for GridFS file access.query - must not be null.Flux.empty() if no mach found.reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> findOne(Query query)
Mono emitting a single GridFSFile matching the given
 query or Mono.empty() in case no file matches. Mono emits an error. If
 you want to obtain the first found file use findFirst(Query).query - must not be null.Mono.empty() if not match found.reactor.core.publisher.Mono<com.mongodb.client.gridfs.model.GridFSFile> findFirst(Query query)
Mono emitting the frist GridFSFile matching the given
 query or Mono.empty() in case no file matches.query - must not be null.Mono.empty() if not match found.reactor.core.publisher.Mono<Void> delete(Query query)
Query.query - must not be null.Mono signalling operation completion.reactor.core.publisher.Mono<ReactiveGridFsResource> getResource(String filename)
Mono emitting the ReactiveGridFsResource with the given file name.filename - must not be null.Mono.empty() if no match found.reactor.core.publisher.Mono<ReactiveGridFsResource> getResource(com.mongodb.client.gridfs.model.GridFSFile file)
file - must not be null.Mono.empty() if no match found.reactor.core.publisher.Flux<ReactiveGridFsResource> getResources(String filenamePattern)
Flux emitting all ReactiveGridFsResources matching the given file name pattern.filenamePattern - must not be null.Flux.empty() if no match found.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.