com.clarkparsia.pellet.sparqldl.engine
Class IncrementalQueryPlan

java.lang.Object
  extended by com.clarkparsia.pellet.sparqldl.engine.QueryPlan
      extended by com.clarkparsia.pellet.sparqldl.engine.IncrementalQueryPlan

public class IncrementalQueryPlan
extends QueryPlan

Title: Query Plan that recomputes the cost of the query in a greedy way.

Description: TODO cache costs - not to recompute them

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Petr Kremen

Field Summary
 java.util.Stack<java.lang.Integer> explored
           
 
Constructor Summary
IncrementalQueryPlan(Query query)
           
 
Method Summary
 void back()
          Goes one level back to the last atom.
 boolean hasNext()
          Checks whether there is another atom to execute.
 QueryAtom next(ResultBinding binding)
          Returns next atom to be executed w.r.
 void reset()
          Resets the query planner.
 
Methods inherited from class com.clarkparsia.pellet.sparqldl.engine.QueryPlan
getQuery
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

explored

public final java.util.Stack<java.lang.Integer> explored
Constructor Detail

IncrementalQueryPlan

public IncrementalQueryPlan(Query query)
Method Detail

next

public QueryAtom next(ResultBinding binding)
Description copied from class: QueryPlan
Returns next atom to be executed w.r. to the current binding.

Specified by:
next in class QueryPlan
Returns:

hasNext

public boolean hasNext()
Description copied from class: QueryPlan
Checks whether there is another atom to execute.

Specified by:
hasNext in class QueryPlan
Returns:
true if there is another atom to execute.

back

public void back()
Description copied from class: QueryPlan
Goes one level back to the last atom.

Specified by:
back in class QueryPlan

reset

public void reset()
Description copied from class: QueryPlan
Resets the query planner.

Specified by:
reset in class QueryPlan


Copyright © 2004 Evren Sirin. All Rights Reserved.