public class Plan extends Object implements IPlan
| Modifier and Type | Field and Description |
|---|---|
protected List<Instruction> |
instructionList
The list of instructions of the plan.
|
protected double |
mappingSize
The size of returned mapping of the plan.
|
protected double |
runtimeCost
The runtime of the plan.
|
protected double |
selectivity
The selectivity of the plan.
|
| Constructor and Description |
|---|
Plan()
Constructor of Plan class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInstruction(Instruction instruction)
Adds an instruction to the instructionList.
|
Plan |
clone()
Returns a clone of the current plan.
|
boolean |
equals(Object other)
Checks if two plans are equal.
|
List<Instruction> |
getInstructionList()
Returns the list of instructions contained in a instructionList.
|
double |
getMappingSize()
Returns the mapping size of the plan.
|
double |
getRuntimeCost()
Returns the runtime cost of the current plan.
|
double |
getSelectivity()
Returns the selectivity of the plan.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the instructionList of the current plan is empty.
|
void |
removeInstruction(Instruction instruction)
Removes an instruction from a instructionList.
|
void |
removeInstruction(int index)
Removes the i-th instruction from the instructionList.
|
void |
setInstructionList(List<Instruction> instructionList)
Sets the instructionList of the plan.
|
void |
setMappingSize(double mappingSize)
Sets the mapping size of the plan.
|
void |
setRuntimeCost(double runtimeCost)
Sets the runtime cost of the plan.
|
void |
setSelectivity(double selectivity)
Sets the selectivity of the plan.
|
int |
size()
Returns the size of the current plan.
|
protected double runtimeCost
protected double mappingSize
protected double selectivity
protected List<Instruction> instructionList
public void addInstruction(Instruction instruction)
addInstruction in interface IPlaninstruction - The Instruction to addpublic void removeInstruction(int index)
removeInstruction in interface IPlanindex - Index of instruction to removepublic void removeInstruction(Instruction instruction)
removeInstruction in interface IPlaninstruction - Instruction to removepublic List<Instruction> getInstructionList()
getInstructionList in interface IPlanpublic void setInstructionList(List<Instruction> instructionList)
instructionList - The instruction list to setpublic boolean isEmpty()
public boolean equals(Object other)
public Plan clone()
public int size()
public double getRuntimeCost()
public void setRuntimeCost(double runtimeCost)
runtimeCost - The runtime cost to setpublic double getMappingSize()
public void setMappingSize(double mappingSize)
mappingSize - The mapping size to setpublic double getSelectivity()
public void setSelectivity(double selectivity)
selectivity - The selectivity value to setCopyright © 2018. All rights reserved.