com.hp.hpl.jena.rdql
Class QueryEngine

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

public class QueryEngine
extends java.lang.Object
implements QueryExecution

Version:
$Id: QueryEngine.java,v 1.6 2003/06/18 15:26:20 andy_seaborne Exp $
Author:
Andy Seaborne

Constructor Summary
QueryEngine(Query q)
           
 
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

QueryEngine

public QueryEngine(Query 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.