|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.optimizer.CommandTreeNode
public class CommandTreeNode
A tree node object used to hold state during command planning and optimizing.
Field Summary | |
---|---|
static int |
TYPE_BATCHED_UPDATE_COMMAND
The command type is a batched update command. |
static int |
TYPE_DYNAMIC_COMMAND
The command type is a dynamic command. |
static int |
TYPE_PREPARED_BATCH_UPDATE_COMMAND
The command type is a prepared batched update command. |
static int |
TYPE_PROCEDURAL_COMMAND
The command type is a procedural command |
static int |
TYPE_RELATIONAL_COMMAND
The command type is a relational command |
static int |
TYPE_XML_COMMAND
The command type is an XML query |
static int |
TYPE_XQUERY_COMMAND
The command type is an XQuery command |
Constructor Summary | |
---|---|
CommandTreeNode()
|
Method Summary | |
---|---|
void |
addChildren(java.util.List otherChildren)
|
void |
addFirstChild(CommandTreeNode child)
|
void |
addLastChild(CommandTreeNode child)
|
java.util.Map |
getAllProperties()
Get the Map of all planner-specific properties |
java.lang.Object |
getCanonicalPlan()
Retrieve the planner-specific canonical plan |
int |
getChildCount()
|
java.util.List |
getChildren()
|
Command |
getCommand()
Returns the Command object. |
int |
getCommandType()
Get the type of this command |
CommandTreeNode |
getFirstChild()
|
CommandTreeNode |
getLastChild()
|
CommandTreeNode |
getParent()
|
ProcessorPlan |
getProcessorPlan()
Returns the planner-specific ProcessorPlan implementation. |
java.lang.Object |
getProperty(java.lang.Integer propertyID)
Retrieve one of the CommandPlanner -specific properties
stored at this node, or null if no property of the given key
exists. |
boolean |
hasChild(CommandTreeNode child)
|
java.lang.String |
nodeToString()
Just print single node to string instead of node+recursive plan. |
boolean |
removeChild(CommandTreeNode child)
|
void |
removeProperty(java.lang.Integer propertyID)
Remove one of the planner-specific properties. |
void |
setCanonicalPlan(java.lang.Object canonicalPlan)
Set the planner-specific canonical plan |
void |
setCommand(Command command)
Sets the Command object. |
void |
setCommandType(int commandType)
Set the type of this command |
void |
setParent(CommandTreeNode parent)
|
void |
setProcessorPlan(ProcessorPlan processorPlan)
Sets the planner-specific ProcessorPlan implementation for the Command represented by this node. |
void |
setProperty(java.lang.Integer propertyID,
java.lang.Object value)
Set a CommandPlanner -specific property. |
java.lang.String |
toString()
Print CommandTreeNode structure starting at this node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_RELATIONAL_COMMAND
public static final int TYPE_XML_COMMAND
public static final int TYPE_PROCEDURAL_COMMAND
public static final int TYPE_XQUERY_COMMAND
public static final int TYPE_BATCHED_UPDATE_COMMAND
public static final int TYPE_DYNAMIC_COMMAND
public static final int TYPE_PREPARED_BATCH_UPDATE_COMMAND
Constructor Detail |
---|
public CommandTreeNode()
Method Detail |
---|
public int getCommandType()
TYPE_RELATIONAL_COMMAND
,
TYPE_XML_COMMAND
,
TYPE_PROCEDURAL_COMMAND
public void setCommandType(int commandType)
commandType
- one of three type constants defined in this classTYPE_RELATIONAL_COMMAND
,
TYPE_XML_COMMAND
,
TYPE_PROCEDURAL_COMMAND
public Command getCommand()
public void setCommand(Command command)
command
- The command to setpublic java.lang.Object getCanonicalPlan()
public void setCanonicalPlan(java.lang.Object canonicalPlan)
canonicalPlan
- Objectpublic ProcessorPlan getProcessorPlan()
public void setProcessorPlan(ProcessorPlan processorPlan)
processorPlan
- The processorPlan to setpublic CommandTreeNode getParent()
public void setParent(CommandTreeNode parent)
public java.util.List getChildren()
public int getChildCount()
public CommandTreeNode getFirstChild()
public CommandTreeNode getLastChild()
public void addFirstChild(CommandTreeNode child)
public void addLastChild(CommandTreeNode child)
public void addChildren(java.util.List otherChildren)
public boolean hasChild(CommandTreeNode child)
public boolean removeChild(CommandTreeNode child)
public java.lang.Object getProperty(java.lang.Integer propertyID)
CommandPlanner
-specific properties
stored at this node, or null if no property of the given key
exists.
propertyID
- key of the property
public java.util.Map getAllProperties()
public void setProperty(java.lang.Integer propertyID, java.lang.Object value)
CommandPlanner
-specific property. Each planner may have
conflicting property keys, so an object of this Class should only be
used for one CommandPlanner at a time.
propertyID
- planner-specific property keyvalue
- property valuepublic void removeProperty(java.lang.Integer propertyID)
propertyID
- key of the propertypublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String nodeToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |