Interface ReactiveRemoveOperation.TerminatingResults<T>
- All Known Subinterfaces:
ReactiveRemoveOperation.ReactiveRemove<T>, ReactiveRemoveOperation.RemoveWithCollection<T>, ReactiveRemoveOperation.RemoveWithQuery<T>, ReactiveRemoveOperation.TerminatingRemove<T>
- Enclosing interface:
ReactiveRemoveOperation
public static interface ReactiveRemoveOperation.TerminatingResults<T>
- Since:
- 5.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionRemove and return all matching documents.map(QueryResultConverter<? super T, ? extends R> converter) Map the query result to a different type usingQueryResultConverter.
-
Method Details
-
map
@Contract("_ -> new") <R> ReactiveRemoveOperation.TerminatingResults<R> map(QueryResultConverter<? super T, ? extends R> converter) Map the query result to a different type usingQueryResultConverter.- Type Parameters:
R-typeof the result.- Parameters:
converter- the converter, must not be null.- Returns:
- new instance of
ExecutableFindOperation.TerminatingResults. - Throws:
IllegalArgumentException- ifconverteris null.- Since:
- 5.0
-
findAndRemove
Remove and return all matching documents.
NOTE: The entire list of documents will be fetched before sending the actual delete commands. Also,ApplicationEvents will be published for each and every delete operation.- Returns:
- empty
Fluxif no match found. Never null.
-