@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
content- result of a query with applied
Pageable. The list must not be null and must contain up to
pageable- must not be null.
totalSupplier- must not be null.
contentand a total size.
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.