|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Operator
Operator interface.
| Method Summary | |
|---|---|
void |
accept(OperatorVisitor visitor)
Accepts operator visitor. |
void |
disconnect()
Disconnects operator. |
Operator |
getChild(int position)
Gets child at the specified position. |
int |
getChildCount()
Gets the number of children the operator has. |
Heading |
getHeading()
Gets operator heading. |
OperatorID |
getID()
Gets operator id. |
Operator |
getParent()
Returns the parent operator. |
long |
getResultCardinality()
Returns the value of the result.cardinality operator
annotation or calculates a new estimate. |
java.util.Set<Attribute> |
getUsedAttributes()
Gets a set of attributes required by the operator. |
boolean |
isBinary()
Indicates if operator is binary. |
boolean |
isPartitionLeaf()
Returns true if this operator marks the leaf of a partition and any children it has will be in a different partition. |
void |
renameUsedAttributes(RenameMap renameMap)
Rename attributes From -> To as defined in a map. |
void |
replaceChild(Operator currentChild,
Operator newChild)
Replaces the current child with a new child. |
void |
setChild(int position,
Operator child)
Sets operator child at a given position. |
void |
setParent(Operator parent)
Sets the parent operator. |
void |
update()
Operator forwards the update call to its children and updates itself. |
void |
validate()
Operator forwards the validation call to its children and validates itself. |
| Methods inherited from interface uk.org.ogsadai.dqp.lqp.Annotatable |
|---|
addAnnotation, getAnnotation, getAnnotations, removeAnnotation |
| Method Detail |
|---|
Operator getParent()
null if not connected.void setParent(Operator parent)
parent - parent operatorOperator getChild(int position)
position - child position
int getChildCount()
void setChild(int position,
Operator child)
position - operator positionchild - child operator
void replaceChild(Operator currentChild,
Operator newChild)
null.
currentChild - child to be replacednewChild - replacementOperatorID getID()
boolean isPartitionLeaf()
boolean isBinary()
true if operator is binary, false
otherwise
void validate()
throws LQPException
LQPException - when validation fails
void update()
throws LQPException
LQPException - when update failsHeading getHeading()
void disconnect()
null.
Disconnected operator is not referring to any other operators. However,
children and parent may still refer to the disconnected operator.
long getResultCardinality()
result.cardinality operator
annotation or calculates a new estimate.
java.util.Set<Attribute> getUsedAttributes()
void renameUsedAttributes(RenameMap renameMap)
throws LQPException
renameMap - rename map
LQPException - when rename is impossiblevoid accept(OperatorVisitor visitor)
visitor - visitor object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||