Class PagePaginator
java.lang.Object
org.apache.drill.exec.store.http.paginator.Paginator
org.apache.drill.exec.store.http.paginator.PagePaginator
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.http.paginator.Paginator
builder, MODE, pageSize, partialPageReceived
-
Constructor Summary
ConstructorDescriptionPagePaginator
(okhttp3.HttpUrl.Builder builder, int limit, int pageSize, String pageParam, String pageSizeParam) The Page Paginator works similarly to the offset paginator. -
Method Summary
Methods inherited from class org.apache.drill.exec.store.http.paginator.Paginator
getMode, getPageSize, notifyPartialPage, setBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
PagePaginator
public PagePaginator(okhttp3.HttpUrl.Builder builder, int limit, int pageSize, String pageParam, String pageSizeParam) The Page Paginator works similarly to the offset paginator. It requires the user to supply a page number query parameter, a page size variable, and a maximum page size.- Parameters:
builder
- The okHttp3 Request builderlimit
- The limit, passed down from the batch reader of the maximum number of results the user wantspageSize
- The number of results per page.pageParam
- The API Query parameter which indicates which page number the user is requestingpageSizeParam
- The API Query parameter which specifies how many results per page
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-