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
-type
of the result.- Parameters:
converter
- the converter, must not be null.- Returns:
- new instance of
ExecutableFindOperation.TerminatingResults
. - Throws:
IllegalArgumentException
- ifconverter
is 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,ApplicationEvent
s will be published for each and every delete operation.- Returns:
- empty
List
if no match found. Never null.
-