felix.dstruct
Class ExecutionPlan

java.lang.Object
  extended by felix.dstruct.ExecutionPlan

public class ExecutionPlan
extends java.lang.Object

The class of an execution plan, which is an ordered list of ConcurrentOperatorsBucket with parameters.

Author:
Ce Zhang

Field Summary
 java.util.HashSet<FelixPredicate> dd_CommonPredicates
          Set of predicates that are shared between different operators via dual decomposition.
 java.util.HashMap<FelixPredicate,java.util.HashSet<ConcurrentOperatorsBucket>> dd_Predicate2OperatorBucket
          Map from predicates in dd_CommonPredicates to their parents operators.
 java.util.ArrayList<ConcurrentOperatorsBucket> operators
          List of buckets which are organized in physical execution order.
 
Constructor Summary
ExecutionPlan()
           
 
Method Summary
 void addOperatorAfter(ConcurrentOperatorsBucket sop)
          Add a bucket in the end of the execution plan.
 void addOperatorBefore(ConcurrentOperatorsBucket sop)
          Add a bucket before the end of the execution plan.
 java.util.ArrayList<StatOperator> getAllStatOperator()
          Get all statistical operators in this execution plan.
 CostModel getCostModel()
          Get CostModel.
 void setCostModel(CostModel _cm)
          Set CostModel.
 java.lang.String toHTMLString()
          Returns HTML representation of this execution plan (for a very preliminary online demo).
 java.lang.String toString()
          Returns string representation of this execution plan.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

operators

public java.util.ArrayList<ConcurrentOperatorsBucket> operators
List of buckets which are organized in physical execution order.


dd_CommonPredicates

public java.util.HashSet<FelixPredicate> dd_CommonPredicates
Set of predicates that are shared between different operators via dual decomposition.


dd_Predicate2OperatorBucket

public java.util.HashMap<FelixPredicate,java.util.HashSet<ConcurrentOperatorsBucket>> dd_Predicate2OperatorBucket
Map from predicates in dd_CommonPredicates to their parents operators.

Constructor Detail

ExecutionPlan

public ExecutionPlan()
Method Detail

setCostModel

public void setCostModel(CostModel _cm)
Set CostModel.

Parameters:
_cm -

getCostModel

public CostModel getCostModel()
Get CostModel.

Returns:

addOperatorAfter

public void addOperatorAfter(ConcurrentOperatorsBucket sop)
Add a bucket in the end of the execution plan.

Parameters:
sop -

addOperatorBefore

public void addOperatorBefore(ConcurrentOperatorsBucket sop)
Add a bucket before the end of the execution plan.

Parameters:
sop -

getAllStatOperator

public java.util.ArrayList<StatOperator> getAllStatOperator()
Get all statistical operators in this execution plan.

Returns:

toString

public java.lang.String toString()
Returns string representation of this execution plan.

Overrides:
toString in class java.lang.Object

toHTMLString

public java.lang.String toHTMLString()
Returns HTML representation of this execution plan (for a very preliminary online demo).

Returns: