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
ConstructorsConstructorDescriptionPaginationQueryIterator(org.apache.jena.query.Query query, long pageSize) Note: The query object's limit and offest will be modified. -
Method Summary
Modifier and TypeMethodDescriptionlongorg.apache.jena.query.Queryprefetch()Returns the next query or nullMethods inherited from class org.aksw.commons.collections.SinglePrefetchIterator
close, current, doRemove, finish, hasNext, next, remove, wasHasNextCalled, wasNextCalled, willAdvanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
prefetchin classorg.aksw.commons.collections.SinglePrefetchIterator<org.apache.jena.query.Query>- Returns:
- Throws:
Exception
-