dstruct
Class ExecutionPlan

java.lang.Object
  extended by 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
(package private)  CostModel cm
          Cost model used in this execution plan.
 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 toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cm

CostModel cm
Cost model used in this execution plan.


operators

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

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()
Overrides:
toString in class java.lang.Object