Class AGQueryExecution

java.lang.Object
com.franz.agraph.jena.AGQueryExecution
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.jena.query.QueryExecution

public class AGQueryExecution extends Object implements org.apache.jena.query.QueryExecution, Closeable
Implements the Jena QueryExecution interface for AllegroGraph.
  • Constructor Details

    • AGQueryExecution

      public AGQueryExecution(AGQuery query, AGModel model)
  • Method Details

    • abort

      public void abort()
      Specified by:
      abort in interface org.apache.jena.query.QueryExecution
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.jena.query.QueryExecution
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface org.apache.jena.query.QueryExecution
    • execAsk

      public boolean execAsk()
      Specified by:
      execAsk in interface org.apache.jena.query.QueryExecution
    • execJson

      public org.apache.jena.atlas.json.JsonArray execJson()
      Specified by:
      execJson in interface org.apache.jena.query.QueryExecution
    • execJsonItems

      public Iterator<org.apache.jena.atlas.json.JsonObject> execJsonItems()
      Specified by:
      execJsonItems in interface org.apache.jena.query.QueryExecution
    • execConstruct

      public Model execConstruct()
      Specified by:
      execConstruct in interface org.apache.jena.query.QueryExecution
    • execConstruct

      public Model execConstruct(Model m)
      Specified by:
      execConstruct in interface org.apache.jena.query.QueryExecution
    • execDescribe

      public Model execDescribe()
      Specified by:
      execDescribe in interface org.apache.jena.query.QueryExecution
    • execDescribe

      public Model execDescribe(Model m)
      Specified by:
      execDescribe in interface org.apache.jena.query.QueryExecution
    • execSelect

      public org.apache.jena.query.ResultSet execSelect()
      Specified by:
      execSelect in interface org.apache.jena.query.QueryExecution
    • execUpdate

      public void execUpdate()
      Executes SPARQL Update.

      Executes as a SPARQL Update to modify the model/repository.

    • countSelect

      public long countSelect()
    • countConstruct

      public long countConstruct()
    • getContext

      public org.apache.jena.sparql.util.Context getContext()
      Specified by:
      getContext in interface org.apache.jena.query.QueryExecution
    • getDataset

      public org.apache.jena.query.Dataset getDataset()
      Specified by:
      getDataset in interface org.apache.jena.query.QueryExecution
    • setInitialBinding

      public void setInitialBinding(org.apache.jena.query.QuerySolution binding)
    • execConstructTriples

      public Iterator<Triple> execConstructTriples()
      Specified by:
      execConstructTriples in interface org.apache.jena.query.QueryExecution
    • execDescribeTriples

      public Iterator<Triple> execDescribeTriples()
      Specified by:
      execDescribeTriples in interface org.apache.jena.query.QueryExecution
    • getQuery

      public org.apache.jena.query.Query getQuery()
      Specified by:
      getQuery in interface org.apache.jena.query.QueryExecution
    • setTimeout

      public void setTimeout(long timeout)
    • setTimeout

      public void setTimeout(long arg0, TimeUnit arg1)
    • setTimeout

      public void setTimeout(long arg0, long arg1)
    • setTimeout

      public void setTimeout(long timeout1, TimeUnit timeUnit1, long timeout2, TimeUnit timeUnit2)
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface org.apache.jena.query.QueryExecution
    • getTimeout1

      public long getTimeout1()
      Specified by:
      getTimeout1 in interface org.apache.jena.query.QueryExecution
    • getTimeout2

      public long getTimeout2()
      Specified by:
      getTimeout2 in interface org.apache.jena.query.QueryExecution
    • execConstructQuads

      public Iterator<org.apache.jena.sparql.core.Quad> execConstructQuads()
      Specified by:
      execConstructQuads in interface org.apache.jena.query.QueryExecution
    • execConstructDataset

      public org.apache.jena.query.Dataset execConstructDataset()
      Specified by:
      execConstructDataset in interface org.apache.jena.query.QueryExecution
    • execConstructDataset

      public org.apache.jena.query.Dataset execConstructDataset(org.apache.jena.query.Dataset dataset)
      Specified by:
      execConstructDataset in interface org.apache.jena.query.QueryExecution