org.aksw.commons.sparql.api.pagination.core
Class ResultSetPaginated

java.lang.Object
  extended by org.aksw.commons.collections.PrefetchIterator<com.hp.hpl.jena.sparql.engine.binding.Binding>
      extended by org.aksw.commons.sparql.api.pagination.core.ResultSetPaginated
All Implemented Interfaces:
Iterator<com.hp.hpl.jena.sparql.engine.binding.Binding>, org.openjena.atlas.lib.Closeable

public class ResultSetPaginated
extends org.aksw.commons.collections.PrefetchIterator<com.hp.hpl.jena.sparql.engine.binding.Binding>
implements org.openjena.atlas.lib.Closeable


Constructor Summary
ResultSetPaginated(QueryExecutionPaginated execution, QueryExecutionFactory service, com.hp.hpl.jena.query.Query query, long pageSize)
           
ResultSetPaginated(QueryExecutionPaginated execution, QueryExecutionFactory service, String queryString, long pageSize)
           
 
Method Summary
 void close()
           
 com.hp.hpl.jena.query.ResultSet getCurrentResultSet()
           
protected  com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorResultSet prefetch()
           
 
Methods inherited from class org.aksw.commons.collections.PrefetchIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetPaginated

public ResultSetPaginated(QueryExecutionPaginated execution,
                          QueryExecutionFactory service,
                          String queryString,
                          long pageSize)

ResultSetPaginated

public ResultSetPaginated(QueryExecutionPaginated execution,
                          QueryExecutionFactory service,
                          com.hp.hpl.jena.query.Query query,
                          long pageSize)
Method Detail

getCurrentResultSet

public com.hp.hpl.jena.query.ResultSet getCurrentResultSet()

prefetch

protected com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorResultSet prefetch()
                                                                          throws Exception
Specified by:
prefetch in class org.aksw.commons.collections.PrefetchIterator<com.hp.hpl.jena.sparql.engine.binding.Binding>
Throws:
Exception

close

public void close()
Specified by:
close in interface org.openjena.atlas.lib.Closeable
Overrides:
close in class org.aksw.commons.collections.PrefetchIterator<com.hp.hpl.jena.sparql.engine.binding.Binding>


Copyright © 2012. All Rights Reserved.