Interface ReactiveSelectOperation.TerminatingResults<T>
- All Known Subinterfaces:
ReactiveSelectOperation.ReactiveSelect<T>, ReactiveSelectOperation.SelectWithProjection<T>, ReactiveSelectOperation.SelectWithQuery<T>, ReactiveSelectOperation.SelectWithTable<T>, ReactiveSelectOperation.TerminatingSelect<T>
- Enclosing interface:
ReactiveSelectOperation
public static interface ReactiveSelectOperation.TerminatingResults<T>
Trigger
SELECT execution by calling one of the terminating methods.- Since:
- 2.1
- Author:
- Mark Paluch, John Blum
-
Method Summary
Modifier and TypeMethodDescriptionall()Get all matching elements.first()Get the first result or no result.map(QueryResultConverter<? super T, ? extends R> converter) Map the query result to a different type usingQueryResultConverter.one()Get exactly zero or one result.
-
Method Details
-
map
@Contract("_ -> new") <R> ReactiveSelectOperation.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
ReactiveSelectOperation.TerminatingResults. - Throws:
IllegalArgumentException- ifconverteris null.- Since:
- 5.0
-
first
Get the first result or no result.- Returns:
- the first result or
Mono.empty()if no match found; never null. - See Also:
-
one
Get exactly zero or one result.- Returns:
- exactly one result or
Mono.empty()if no match found; never null. - Throws:
IncorrectResultSizeDataAccessException- if more than one match found.- See Also:
-
all
-