Class HeFQUINEngineImpl
java.lang.Object
se.liu.ida.hefquin.engine.HeFQUINEngineImpl
- All Implemented Interfaces:
HeFQUINEngine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FederationAccessManager
protected final QueryProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionHeFQUINEngineImpl
(FederationAccessManager fedAccessMgr, QueryProcessor qProc) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
executeNonSelectQuery
(org.apache.jena.query.QueryExecution qe, org.apache.jena.sparql.resultset.ResultsFormat outputFormat, PrintStream output) executeQuery
(org.apache.jena.query.Query query, org.apache.jena.sparql.resultset.ResultsFormat outputFormat, PrintStream output) Executes the given query, prints the result to the given output (in the given format), and returns a statistics collected during the query execution process, together with a list of exception that were caught during query execution (if any).protected void
executeSelectQuery
(org.apache.jena.query.QueryExecution qe, org.apache.jena.sparql.resultset.ResultsFormat outputFormat, PrintStream output) void
Call this one after the engine has been created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.liu.ida.hefquin.engine.HeFQUINEngine
executeQuery, executeQuery, executeQuery
-
Field Details
-
fedAccessMgr
-
qProc
-
-
Constructor Details
-
HeFQUINEngineImpl
-
-
Method Details
-
integrateIntoJena
public void integrateIntoJena()Description copied from interface:HeFQUINEngine
Call this one after the engine has been created.- Specified by:
integrateIntoJena
in interfaceHeFQUINEngine
-
getFederationAccessStats
- Specified by:
getFederationAccessStats
in interfaceHeFQUINEngine
-
executeQuery
public Pair<QueryProcStats,List<Exception>> executeQuery(org.apache.jena.query.Query query, org.apache.jena.sparql.resultset.ResultsFormat outputFormat, PrintStream output) throws UnsupportedQueryException, IllegalQueryException Description copied from interface:HeFQUINEngine
Executes the given query, prints the result to the given output (in the given format), and returns a statistics collected during the query execution process, together with a list of exception that were caught during query execution (if any). AnUnsupportedQueryException
is thrown if the given query uses features that are not supported by HeFQUIN; the message of the exception describes the specific limitation and can be passed directly to the user. AnIllegalQueryException
is thrown if the given query is invalid; the message of the exception describes the issue and can be passed directly to the user.- Specified by:
executeQuery
in interfaceHeFQUINEngine
- Throws:
UnsupportedQueryException
IllegalQueryException
-
executeSelectQuery
protected void executeSelectQuery(org.apache.jena.query.QueryExecution qe, org.apache.jena.sparql.resultset.ResultsFormat outputFormat, PrintStream output) throws Exception - Throws:
Exception
-
executeNonSelectQuery
protected void executeNonSelectQuery(org.apache.jena.query.QueryExecution qe, org.apache.jena.sparql.resultset.ResultsFormat outputFormat, PrintStream output) throws Exception - Throws:
Exception
-