Package com.appiancorp.common.query
Interface QueryBuilder.Paging<T>
- Type Parameters:
T
- Type of value
- All Superinterfaces:
QueryBuilder<T>
,QueryBuilder.Sorting<T>
- All Known Subinterfaces:
QueryBuilder.Aggregating<T>
,QueryBuilder.Filtering<T>
,QueryBuilder.FilteringCriteria<T>
,QueryBuilder.Grouping<T>
,QueryBuilder.Selecting<T>
- All Known Implementing Classes:
GenericQuery.GenericBuilder
,Query.Builder
,TypedValueQuery.TypedValueBuilder
- Enclosing interface:
- QueryBuilder<T>
This interface is available as a preview of functionality that will be added to the supported public API in a future release. While it is in the preview phase, it is subject to change or removal without deprecation or notice. Although notice of change is not guaranteed, we will try to let developers know of major changes through announcements in release notes.
Restricts path after Paging.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appiancorp.common.query.QueryBuilder
QueryBuilder.Aggregating<T>, QueryBuilder.Filtering<T>, QueryBuilder.FilteringCriteria<T>, QueryBuilder.Grouping<T>, QueryBuilder.Paging<T>, QueryBuilder.Selecting<T>, QueryBuilder.Sorting<T>
-
Method Summary
Modifier and TypeMethodDescriptionpage
(int startIndex, int batchSize) Obtains the set of operations allowed afterQueryBuilder.Paging<T>
page
(PagingInfo pagingInfo) Defines query'sPagingInfo
Methods inherited from interface com.appiancorp.common.query.QueryBuilder
build
Methods inherited from interface com.appiancorp.common.query.QueryBuilder.Sorting
sortBy, sortBy, sortBy, sortBy
-
Method Details
-
page
Obtains the set of operations allowed afterQueryBuilder.Paging<T>
- Parameters:
pagingInfo
- the index from which to start paging. This may be 0-based or 1-based depending on where this PagingInfo object will be used.batchSize
- the number of results to return in one page. If negative, the full result set should be returned.- Returns:
- the
QueryBuilder.Sorting<T>
interface with the set of operations allowed afterQueryBuilder.Paging<T>
-
page
Defines query'sPagingInfo
- Parameters:
pagingInfo
- thePagingInfo
describing how to page the results- Returns:
- the
QueryBuilder<T>
which can produce aQuery<T>
instance.
-