@Test public void testText() throws Exception { assertEquals("x\n + test:\n + null\n + string:string\n + list<string>:\n 0: item1\n 1: item2\n 2: item3\n + child:\n y\n + outputCols:\n 0: Name (string)\n 1: Year (integer)\n + Join Type:INNER JOIN\n + Criteria:Item.ID = History.ID\n + Other\n", example1().toString()); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, false, builder); return builder.toString(); }
PlanNode implements Externalizable { @Override public String toString() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, false, builder); return builder.toString(); } }
PlanNode implements Externalizable { @Override public String toString() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, false, builder); return builder.toString(); } PlanNode();  PlanNode(String name); }
PlanNode implements Externalizable { @Override public String toString() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, false, builder); return builder.toString(); } PlanNode();  PlanNode(String name); String getName(); PlanNode getParent(); List<Property> getProperties(); void addProperty(String pname, PlanNode value); void addProperty(String pname, List<String> value); void addProperty(String pname, String value); String toXml(); static PlanNode fromXml(String planString); @Override String toString(); String toYaml(); @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out); Property getProperty(String pName); }
PlanNode implements Externalizable { @Override public String toString() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, false, builder); return builder.toString(); } PlanNode();  PlanNode(String name); String getName(); PlanNode getParent(); List<Property> getProperties(); void addProperty(String pname, PlanNode value); void addProperty(String pname, List<String> value); void addProperty(String pname, String value); String toXml(); static PlanNode fromXml(String planString); @Override String toString(); String toYaml(); @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out); Property getProperty(String pName);  }