@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
Supplierapplying optimizations. The construction of
Pageomits a count query if the total can be determined based on the result size and
content- must not be null.
pageable- must not be null.
totalSupplier- must not be null.
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.