Class PaginationQueryIterator

java.lang.Object
org.aksw.commons.collections.SinglePrefetchIterator<org.apache.jena.query.Query>
org.aksw.jenax.arq.util.exec.query.PaginationQueryIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<org.apache.jena.query.Query>

public class PaginationQueryIterator extends org.aksw.commons.collections.SinglePrefetchIterator<org.apache.jena.query.Query>
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaginationQueryIterator(org.apache.jena.query.Query query, long pageSize)
    Note: The query object's limit and offest will be modified.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    org.apache.jena.query.Query
    Returns the next query or null

    Methods inherited from class org.aksw.commons.collections.SinglePrefetchIterator

    close, current, doRemove, finish, hasNext, next, remove, wasHasNextCalled, wasNextCalled, willAdvance

    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
  • Constructor Details

    • PaginationQueryIterator

      public PaginationQueryIterator(org.apache.jena.query.Query query, long pageSize)
      Note: The query object's limit and offest will be modified. Use Query.cloneQuery in order to create a copy.
      Parameters:
      query -
      pageSize -
  • Method Details

    • getPageSize

      public long getPageSize()
    • prefetch

      public org.apache.jena.query.Query prefetch()
      Returns the next query or null
      Specified by:
      prefetch in class org.aksw.commons.collections.SinglePrefetchIterator<org.apache.jena.query.Query>
      Returns:
      Throws:
      Exception