My Library Docs

Multi-root Sidebar

flex-layout

  • Getting Started

  • Guides

  • Reference

typed-rx-http

  • Getting Started

  • Guides

  • Reference

global-rx-state

  • Getting Started

  • Guides

  • Reference

webflux-fe-dev-assistant

reactive-mongo-dsl

Paging & Sorting

Uses general find paging, reactive PageStream, aggregation pages, and ordered SortSpec appropriately.


General find paging
java

pageNumber is 0-based. A nested builder in the form of paging().pageNumber(...).pageSize(...).and() can also be used.

PageStream
java

대량 처리에서 data를 즉시 List로 모으고 싶지 않다면 PageStream을 사용합니다. 필요하면 collectToPageResult()PageResult<T>로 변환할 수 있습니다.

Aggregation paging
java

executeAggregation()은 reactive page data를 최종 List로 collect해 PageResult<T>를 만듭니다. stream 상태가 중요하면 executeAggregationPageStream()을 사용합니다.

SortSpec
java

The sort key maintains the order in which it was added. Dynamic direction can use sort.of(direction, field) and Driver-native sort can be mixed with driver(Bson).

© 2026 Byeolnaerim. All rights reserved.IntroductionPrivacy Policy