Class QueryExecutionIterated

java.lang.Object
org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
org.aksw.jena_sparql_api.pagination.core.QueryExecutionIterated
All Implemented Interfaces:
AutoCloseable, org.apache.jena.query.QueryExecution

public class QueryExecutionIterated extends org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
A query execution that generates paginated result sets. Note: Construct queries are NOT paginated. (Because I don't see how a model can be paginated)
Author:
Claus Stadler

Date: 7/26/11 Time: 7:59 PM

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Closeable
     
    protected org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory
     
    protected org.apache.jena.query.Query
     
    protected Iterator<org.apache.jena.query.Query>
     
    protected boolean
     
    protected boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueryExecutionIterated(org.apache.jena.query.Query originalQuery, org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory factory, Iterator<org.apache.jena.query.Query> queryIterator)
     
    QueryExecutionIterated(org.apache.jena.query.Query originalQuery, org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory factory, Iterator<org.apache.jena.query.Query> queryIterator, boolean stopOnEmptyResult, boolean stopIfLimitNotReached)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
    org.apache.jena.rdf.model.Model
     
    org.apache.jena.rdf.model.Model
    execConstruct(org.apache.jena.rdf.model.Model result)
     
    Iterator<org.apache.jena.graph.Triple>
     
    org.apache.jena.query.ResultSet
     
    org.apache.jena.query.Query
     

    Methods inherited from class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter

    abort, execConstructDataset, execConstructDataset, execConstructQuads, execDescribe, execDescribe, execDescribeTriples, execJson, execJsonItems, getContext, getDataset, getQueryString, getTimeout1, getTimeout2, isClosed, setInitialBinding, setInitialBinding, setTimeout, setTimeout, setTimeout, setTimeout

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • factory

      protected org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory factory
    • queryIterator

      protected Iterator<org.apache.jena.query.Query> queryIterator
    • stopOnEmptyResult

      protected boolean stopOnEmptyResult
    • stopIfLimitNotReached

      protected boolean stopIfLimitNotReached
    • currentCloseAction

      protected Closeable currentCloseAction
    • originalQuery

      protected org.apache.jena.query.Query originalQuery
  • Constructor Details

    • QueryExecutionIterated

      public QueryExecutionIterated(org.apache.jena.query.Query originalQuery, org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory factory, Iterator<org.apache.jena.query.Query> queryIterator)
    • QueryExecutionIterated

      public QueryExecutionIterated(org.apache.jena.query.Query originalQuery, org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory factory, Iterator<org.apache.jena.query.Query> queryIterator, boolean stopOnEmptyResult, boolean stopIfLimitNotReached)
  • Method Details

    • getQuery

      public org.apache.jena.query.Query getQuery()
      Specified by:
      getQuery in interface org.apache.jena.query.QueryExecution
      Overrides:
      getQuery in class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
    • execAsk

      public boolean execAsk()
      Specified by:
      execAsk in interface org.apache.jena.query.QueryExecution
      Overrides:
      execAsk in class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
    • execSelect

      public org.apache.jena.query.ResultSet execSelect()
      Specified by:
      execSelect in interface org.apache.jena.query.QueryExecution
      Overrides:
      execSelect in class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
    • execConstruct

      public org.apache.jena.rdf.model.Model execConstruct()
      Specified by:
      execConstruct in interface org.apache.jena.query.QueryExecution
      Overrides:
      execConstruct in class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
    • execConstructTriples

      public Iterator<org.apache.jena.graph.Triple> execConstructTriples()
      Specified by:
      execConstructTriples in interface org.apache.jena.query.QueryExecution
      Overrides:
      execConstructTriples in class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
    • execConstruct

      public org.apache.jena.rdf.model.Model execConstruct(org.apache.jena.rdf.model.Model result)
      Specified by:
      execConstruct in interface org.apache.jena.query.QueryExecution
      Overrides:
      execConstruct in class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.jena.query.QueryExecution
      Overrides:
      close in class org.aksw.jenax.arq.util.exec.query.QueryExecutionAdapter