public static interface FluentQuery.ReactiveFluentQuery<T> extends FluentQuery<T>
FluentQuery
allowing to materialize results from the underlying query.FluentQuery.FetchableFluentQuery<T>, FluentQuery.ReactiveFluentQuery<T>
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<T> |
all()
Get all matching elements.
|
<R> FluentQuery.ReactiveFluentQuery<R> |
as(Class<R> resultType)
Define the target type the result should be mapped to.
|
reactor.core.publisher.Mono<Long> |
count()
Get the number of matching elements.
|
reactor.core.publisher.Mono<Boolean> |
exists()
Check for the presence of matching elements.
|
reactor.core.publisher.Mono<T> |
first()
Get the first or no result.
|
reactor.core.publisher.Mono<T> |
one()
Get exactly zero or one result.
|
reactor.core.publisher.Mono<Page<T>> |
page(Pageable pageable)
Get a page of matching elements for
Pageable . |
FluentQuery.ReactiveFluentQuery<T> |
project(Collection<String> properties)
Define which properties or property paths to include in the query.
|
default FluentQuery.ReactiveFluentQuery<T> |
project(String... properties)
Define which properties or property paths to include in the query.
|
FluentQuery.ReactiveFluentQuery<T> |
sortBy(Sort sort)
Define the sort order.
|
FluentQuery.ReactiveFluentQuery<T> sortBy(Sort sort)
FluentQuery
sortBy
in interface FluentQuery<T>
sort
- the Sort
specification to sort the results by, may be Sort.unsorted()
, must not be
null.FluentQuery
.<R> FluentQuery.ReactiveFluentQuery<R> as(Class<R> resultType)
FluentQuery
as
in interface FluentQuery<T>
R
- result type.resultType
- must not be null
.FluentQuery
.default FluentQuery.ReactiveFluentQuery<T> project(String... properties)
FluentQuery
project
in interface FluentQuery<T>
properties
- must not be null
.FluentQuery
.FluentQuery.ReactiveFluentQuery<T> project(Collection<String> properties)
FluentQuery
project
in interface FluentQuery<T>
properties
- must not be null
.FluentQuery
.reactor.core.publisher.Mono<T> one()
null
if no match found.IncorrectResultSizeDataAccessException
- if more than one match found.reactor.core.publisher.Mono<T> first()
null
if no match found.reactor.core.publisher.Flux<T> all()
reactor.core.publisher.Mono<Page<T>> page(Pageable pageable)
Pageable
.pageable
- the pageable to request a paged result, can be Pageable.unpaged()
, must not be
null. The given Pageable
will override any previously specified sort
if
the Sort
object is not Sort.isUnsorted()
.reactor.core.publisher.Mono<Long> count()
reactor.core.publisher.Mono<Boolean> exists()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.