Class PagePaginator

java.lang.Object
org.apache.drill.exec.store.http.paginator.Paginator
org.apache.drill.exec.store.http.paginator.PagePaginator
All Implemented Interfaces:
Iterator<String>

public class PagePaginator extends Paginator
  • 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 builder
      limit - The limit, passed down from the batch reader of the maximum number of results the user wants
      pageSize - The number of results per page.
      pageParam - The API Query parameter which indicates which page number the user is requesting
      pageSizeParam - The API Query parameter which specifies how many results per page
  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public String next()