Franz Inc, AllegroGraph

com.franz.agraph.repository
Class AGTupleQuery

java.lang.Object
  extended by org.openrdf.query.impl.AbstractQuery
      extended by com.franz.agraph.repository.AGQuery
          extended by com.franz.agraph.repository.AGTupleQuery
All Implemented Interfaces:
Query, TupleQuery
Direct Known Subclasses:
AGStreamTupleQuery

public class AGTupleQuery
extends AGQuery
implements TupleQuery

Implements the Sesame TupleQuery interface for AllegroGraph.


Field Summary
 
Fields inherited from class com.franz.agraph.repository.AGQuery
RDFS_PLUS_PLUS, RESTRICTION, SPARQL_COVERAGE_PLANNER, SPARQL_IDENTITY_PLANNER
 
Constructor Summary
AGTupleQuery(AGRepositoryConnection con, QueryLanguage ql, String queryString, String baseURI)
           
 
Method Summary
 long count()
          Evaluates the query and returns only the number of results to the client (counting is done on the server, the results are not returned).
 TupleQueryResult evaluate()
           
 void evaluate(TupleQueryResultHandler handler)
           
 
Methods inherited from class com.franz.agraph.repository.AGQuery
analyze, getBindingsArray, getEntailmentRegime, getLanguage, getLimit, getName, getOffset, getPlanner, getQueryString, isCheckVariables, isPrepared, setCheckVariables, setEntailmentRegime, setIncludeInferred, setLimit, setOffset, setPlanner, setPrepared, setSaveName, toString
 
Methods inherited from class org.openrdf.query.impl.AbstractQuery
clearBindings, getBindings, getDataset, getIncludeInferred, getMaxQueryTime, removeBinding, setBinding, setDataset, setMaxQueryTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.Query
clearBindings, getBindings, getDataset, getIncludeInferred, getMaxQueryTime, removeBinding, setBinding, setDataset, setIncludeInferred, setMaxQueryTime
 

Constructor Detail

AGTupleQuery

public AGTupleQuery(AGRepositoryConnection con,
                    QueryLanguage ql,
                    String queryString,
                    String baseURI)
Method Detail

evaluate

public TupleQueryResult evaluate()
                          throws QueryEvaluationException
Specified by:
evaluate in interface TupleQuery
Throws:
QueryEvaluationException

evaluate

public void evaluate(TupleQueryResultHandler handler)
              throws QueryEvaluationException,
                     TupleQueryResultHandlerException
Specified by:
evaluate in interface TupleQuery
Throws:
QueryEvaluationException
TupleQueryResultHandlerException

count

public long count()
           throws QueryEvaluationException
Evaluates the query and returns only the number of results to the client (counting is done on the server, the results are not returned).

Returns:
the number of results
Throws:
QueryEvaluationException

Copyright © 2008-2011 Franz Inc.