@Deprecated public abstract class PageableExecutionUtils extends Object
PageableExecutionUtilsassumes that data queries are cheaper than
COUNTqueries and so some cases can take advantage of optimizations.
|Modifier and Type||Method and Description|
public static <T> Page<T> getPage(List<T> content, Pageable pageable, LongSupplier totalSupplier)
Pagebased on the given
LongSupplierapplying optimizations. The construction of
Pageomits a count query if the total can be determined based on the result size and
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.