com.clarkparsia.pellet.sparqldl.engine
Class QueryPlan

java.lang.Object
  extended by com.clarkparsia.pellet.sparqldl.engine.QueryPlan
Direct Known Subclasses:
CostBasedQueryPlanNew, IncrementalQueryPlan, NoReorderingQueryPlan

public abstract class QueryPlan
extends java.lang.Object

Title: Query Plan abstraction.

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Petr Kremen

Constructor Summary
QueryPlan(Query query)
           
 
Method Summary
abstract  void back()
          Goes one level back to the last atom.
 Query getQuery()
           
abstract  boolean hasNext()
          Checks whether there is another atom to execute.
abstract  QueryAtom next(ResultBinding binding)
          Returns next atom to be executed w.r.
abstract  void reset()
          Resets the query planner.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryPlan

public QueryPlan(Query query)
Method Detail

getQuery

public Query getQuery()

next

public abstract QueryAtom next(ResultBinding binding)
Returns next atom to be executed w.r. to the current binding.

Parameters:
binding -
Returns:

back

public abstract void back()
Goes one level back to the last atom.


hasNext

public abstract boolean hasNext()
Checks whether there is another atom to execute.

Returns:
true if there is another atom to execute.

reset

public abstract void reset()
Resets the query planner.



Copyright © 2004 Evren Sirin. All Rights Reserved.