| Constructor and Description |
|---|
SolrPageRequest(int page,
int size)
Creates a new
SolrPageRequest. |
SolrPageRequest(int page,
int size,
Sort.Direction direction,
String... properties)
Creates a new
SolrPageRequest with sort parameters applied. |
SolrPageRequest(int page,
int size,
Sort sort)
Creates a new
SolrPageRequest with sort parameters applied. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Pageable |
first() |
long |
getOffset() |
int |
getPageNumber() |
int |
getPageSize() |
Sort |
getSort() |
int |
hashCode() |
boolean |
hasPrevious() |
Pageable |
next() |
Pageable |
previous()
|
Pageable |
previousOrFirst() |
String |
toString() |
public SolrPageRequest(int page,
int size)
SolrPageRequest. Pages are zero indexed.page - zero-based page index.size - the size of the page to be returned.public SolrPageRequest(int page,
int size,
Sort.Direction direction,
String... properties)
SolrPageRequest with sort parameters applied.page - zero-based page index.size - the size of the page to be returned.direction - the direction of the Sort to be specified, can be null.properties - the properties to sort by, must not be null or empty.public SolrPageRequest(int page,
int size,
@Nullable
Sort sort)
SolrPageRequest with sort parameters applied.page - zero-based page index.size - the size of the page to be returned.sort - can be null.public int getPageNumber()
getPageNumber in interface Pageablepublic int getPageSize()
getPageSize in interface Pageablepublic Pageable previousOrFirst()
previousOrFirst in interface Pageablepublic boolean hasPrevious()
hasPrevious in interface Pageablepublic Pageable previous()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.