com.hp.hpl.jena.rdql
Class QueryEngineExt

java.lang.Object
  extended bycom.hp.hpl.jena.rdql.QueryEngineExt
All Implemented Interfaces:
QueryExecution

public class QueryEngineExt
extends java.lang.Object
implements QueryExecution

An execution of a query. This is mapping to the old, external query evaluation system. The query is not modified so can be reused. A new QueryEngine object should be created because the internal state after (and during) execution of a query is not defined. This implementation executes the triple pattern generation on a one thread, executes the constraint filters on another, and leaving the application thread just to return results.

Version:
$Id: QueryEngineExt.java,v 1.3 2003/06/19 16:09:50 andy_seaborne Exp $
Author:
Andy Seaborne
See Also:
Query, QueryResults

Constructor Summary
QueryEngineExt(Query q)
          Deprecated. Use QueryEngine - which devloves mathcing to the graph.
 
Method Summary
 void abort()
          Stop in mid execution.
 void close()
          Normal end of use of this execution
 QueryResults exec()
          Execute a query and get back the results.
 QueryResults exec(ResultBinding startBinding)
          Execute a query, passing in an initial binding of some of the variables in the query.
 void init()
          Initialise a query execution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEngineExt

public QueryEngineExt(Query q)
Deprecated. Use QueryEngine - which devloves mathcing to the graph.

Parameters:
q -
Method Detail

init

public void init()
Initialise a query execution. May be called before exec. If it has not be called, the query engine will initialise itself during the exec() method.

Specified by:
init in interface QueryExecution

exec

public QueryResults exec()
Execute a query and get back the results.

Specified by:
exec in interface QueryExecution
Returns:
QueryResults

exec

public QueryResults exec(ResultBinding startBinding)
Execute a query, passing in an initial binding of some of the variables in the query.

Specified by:
exec in interface QueryExecution
Parameters:
startBinding - Initial values of variables.
Returns:
QueryResults

abort

public void abort()
Description copied from interface: QueryExecution
Stop in mid execution. No guarantee that the concrete implementation actual will stop or that it will do so immediately.

Specified by:
abort in interface QueryExecution

close

public void close()
Normal end of use of this execution

Specified by:
close in interface QueryExecution


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.