org.teiid.client.plan
Class PlanNode
java.lang.Object
org.teiid.client.plan.PlanNode
- All Implemented Interfaces:
- Externalizable, Serializable
public class PlanNode
- extends Object
- implements Externalizable
A PlanNode represents part of processing plan tree. For relational plans
child PlanNodes may be either subqueries or nodes that feed tuples into the
parent. For procedure plans child PlanNodes will be processing instructions,
which can in turn contain other relational or procedure plans.
- See Also:
- Serialized Form
PlanNode
public PlanNode()
PlanNode
public PlanNode(String name)
getName
public String getName()
getParent
public PlanNode getParent()
getProperties
public List<PlanNode.Property> getProperties()
addProperty
public void addProperty(String pname,
PlanNode value)
addProperty
public void addProperty(String pname,
List<String> value)
addProperty
public void addProperty(String pname,
String value)
toXml
public String toXml()
- Converts this PlanNode to XML. See the JAXB bindings for the
document form.
- Returns:
- an XML document of this PlanNode
fromXml
public static PlanNode fromXml(String planString)
throws XMLStreamException
- Throws:
XMLStreamException
toString
public String toString()
- Overrides:
toString
in class Object
visitNode
protected void visitNode(PlanNode node,
int nodeLevel,
StringBuilder text)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.