Result Types
Organizes Flux/Mono terminals and result types of PageResult, PageStream, ResultTuple in Reactive Mongo DSL.
Basic return type of Terminal
findAll / Search findAll / Vector findAll
Flux<E>
find / Search find / Vector find
Mono<E>
count
Mono<Long>
exists / existsQuery
Mono<Boolean>
distinct
Flux<R>; 필요할 때 호출 측에서 collectList()
PageResult<T>
getData()
현재 page의 List<T>
getTotalCount()
total matching count
map / mapNotNull / filter / filterNotNull
transform current page data while maintaining totalCount
size / isEmpty
helper based on current page data
totalPages / hasNext
page calculation helper using totalCount and page size
PageStream<T>
data()
현재 page data Flux<T>
totalCount()
전체 count Mono<Long>
map / mapNotNull / filter / filterNotNull / onEach
Maintain totalCount with reactive data transformation
size() / isEmpty() / totalPages() / hasNext()
Mono-based reactive page helper
collectToPageResult()
data Flux를 List로 모아 Mono<PageResult<T>>로 변환
ResultTuple<L, R>
getLeftName() / getLeft()
Left query builder name and result
getRightName() / getRight()
Right query builder name and lookup/group result
getTotalCount()
Optionally linked totalCount for the tuple
getRightIfListFirst()
If right is a List, returns the first element; returns null if null or empty List.