|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperatorPlan
Method Summary | |
---|---|
void |
add(Operator op)
Add a new operator to the plan. |
void |
connect(Operator from,
int fromPos,
Operator to,
int toPos)
Connect two operators in the plan, controlling which position in the edge lists that the from and to edges are placed. |
void |
connect(Operator from,
Operator to)
Connect two operators in the plan. |
Pair<Integer,Integer> |
disconnect(Operator from,
Operator to)
Disconnect two operators in the plan. |
Iterator<Operator> |
getOperators()
Get an iterator of all operators in this plan |
List<Operator> |
getPredecessors(Operator op)
For a given operator, get all operators immediately before it in the plan. |
List<Operator> |
getSinks()
Get all operators in the plan that have no successors. |
List<Operator> |
getSources()
Get all operators in the plan that have no predecessors. |
List<Operator> |
getSuccessors(Operator op)
For a given operator, get all operators immediately after it. |
boolean |
isEqual(OperatorPlan other)
This is like a shallow comparison. |
void |
remove(Operator op)
Remove an operator from the plan. |
int |
size()
Get number of nodes in the plan. |
Method Detail |
---|
int size()
List<Operator> getSources()
List<Operator> getSinks()
List<Operator> getPredecessors(Operator op) throws IOException
op
- operator to fetch predecessors of
IOException
- if op is not in the plan.List<Operator> getSuccessors(Operator op) throws IOException
op
- operator to fetch successors of
IOException
- if op is not in the plan.void add(Operator op)
op
- operator to addvoid remove(Operator op) throws IOException
op
- Operator to be removed
IOException
- if the remove operation attempts to
remove an operator that is still connected to other operators.void connect(Operator from, int fromPos, Operator to, int toPos)
from
- Operator edge will come fromfromPos
- Position in the array for the from edgeto
- Operator edge will go totoPos
- Position in the array for the to edgevoid connect(Operator from, Operator to)
from
- Operator edge will come fromto
- Operator edge will go toPair<Integer,Integer> disconnect(Operator from, Operator to) throws IOException
from
- Operator edge is coming fromto
- Operator edge is going to
IOException
- if the two operators aren't connected.Iterator<Operator> getOperators()
boolean isEqual(OperatorPlan other)
other
- object to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |