Interface ExecutableRemoveOperation.TerminatingResults<T>
- All Known Subinterfaces:
ExecutableRemoveOperation.ExecutableRemove<T>, ExecutableRemoveOperation.RemoveWithCollection<T>, ExecutableRemoveOperation.RemoveWithQuery<T>, ExecutableRemoveOperation.TerminatingRemove<T>
- Enclosing interface:
ExecutableRemoveOperation
public static interface ExecutableRemoveOperation.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> ExecutableRemoveOperation.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
Listif no match found. Never null.
-