K - the type of key emitted by the view,fixed by the
Key.Typesupplied to the
ViewRequestBuilderV - the type of value emitted by the view,specified when supplied to the
ViewRequestBuilderpublic 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();
buildreturnThisrowsPerPagedescending, endKey, endKeyDocId, includeDocs, inclusiveEnd, keys, stale, startKey, startKeyDocIdgroup, groupLevel, reduce