K
- the type of key emitted by the view,fixed by the
Key.Type
supplied to the
ViewRequestBuilder
V
- the type of value emitted by the view,specified when supplied to the
ViewRequestBuilder
public interface PaginatedRequestBuilder<K,V> extends SingleRequestBuilder<K,V,PaginatedRequestBuilder<K,V>>, SettableViewParameters.Paginated<K,PaginatedRequestBuilder<K,V>>, SettableViewParameters.Reduceable<K,PaginatedRequestBuilder<K,V>>
ViewRequest
.
Example usage:
ViewRequest<String, String> paginatedRequest =
//get a builder for the "foo" view of the "example" design doc
db.getViewRequestBuilder("example","foo")
//create a new paginated request expecting String keys and values
.newPaginatedRequest(Key.Type.STRING, String.class)
//set the number of rows for each page
.rowsPerPage(12)
//set any other required parameters
.startKey("bar")
//build the paginated request
.build();
build
returnThis
rowsPerPage
descending, endKey, endKeyDocId, includeDocs, inclusiveEnd, keys, stale, startKey, startKeyDocId
group, groupLevel, reduce