|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imemex.logicalplan.AbstractLogicalNode
public abstract class AbstractLogicalNode
The abstract logical node implements the following common functinality of logical nodes:
| Field Summary |
|---|
| Fields inherited from interface org.imemex.logicalplan.LogicalNode |
|---|
COPY_ANNOTATION |
| Constructor Summary | |
|---|---|
AbstractLogicalNode(java.lang.String alias,
LogicalNodeType type)
|
|
AbstractLogicalNode(java.lang.String alias,
LogicalNodeType type,
LogicalNodeMetaData lnmd)
|
|
| Method Summary | |
|---|---|
boolean |
equals(LogicalNode lognode,
boolean recursive,
boolean deep)
Perform equality test. |
java.lang.String |
getAlias()
Get alias of this logical node. |
LogicalNode |
getChild(int index)
Get a single child. |
java.util.List<LogicalNode> |
getChildren()
Get direct children of this node. |
java.lang.String |
getCompareKey()
Get compare key of this logical node (equally calculated for each node type and states!) |
java.lang.String |
getDesc()
Get description. |
LogicalNodeMetaData |
getMetaData()
Get metadata of this logical node. |
int |
getTreeSize()
Get number of nodes in the complete subtree of this node. |
LogicalNodeType |
getType()
Get type of this logical node. |
int |
nrOfChildren()
Get number of direct children. |
boolean |
remove(LogicalNode child)
Remove a given child. |
boolean |
replace(LogicalNode oldChild,
LogicalNode newChild)
Replace one child with another. |
void |
setAlias(java.lang.String alias)
Set alias of this logical node node. |
void |
setDesc(java.lang.String description)
Set description. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean verbose)
|
java.lang.String |
toXML()
Generate XML output. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.imemex.logicalplan.LogicalNode |
|---|
copy |
| Constructor Detail |
|---|
public AbstractLogicalNode(java.lang.String alias,
LogicalNodeType type)
public AbstractLogicalNode(java.lang.String alias,
LogicalNodeType type,
LogicalNodeMetaData lnmd)
| Method Detail |
|---|
public final LogicalNodeType getType()
LogicalNode
getType in interface LogicalNodepublic final java.lang.String getAlias()
LogicalNode
getAlias in interface LogicalNodepublic final void setAlias(java.lang.String alias)
LogicalNode
setAlias in interface LogicalNodealias - new alias for this logical node.public final java.lang.String getDesc()
LogicalNode
getDesc in interface LogicalNodepublic final void setDesc(java.lang.String description)
LogicalNode
setDesc in interface LogicalNodepublic final int nrOfChildren()
LogicalNode
nrOfChildren in interface LogicalNodepublic final LogicalNode getChild(int index)
LogicalNode
getChild in interface LogicalNodeindex - index of child to get.
public final java.util.List<LogicalNode> getChildren()
LogicalNode
getChildren in interface LogicalNodepublic final int getTreeSize()
LogicalNode
getTreeSize in interface LogicalNode
public final boolean replace(LogicalNode oldChild,
LogicalNode newChild)
replace in interface LogicalNodeoldChild - old child to replace.newChild - new child to insert.
public final boolean remove(LogicalNode child)
remove in interface LogicalNodechild - child to remove.
public final LogicalNodeMetaData getMetaData()
LogicalNode
getMetaData in interface LogicalNode
public boolean equals(LogicalNode lognode,
boolean recursive,
boolean deep)
equals in interface LogicalNodelognode - logical node to compare against.recursive - true to perform deep test.deep - ??? TODO
public java.lang.String getCompareKey()
LogicalNodeThe compare key is used to order logical nodes in a canonical way.
getCompareKey in interface LogicalNodepublic java.lang.String toXML()
toXML in interface LogicalNodepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean verbose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||