@Test public void testYaml() throws Exception { assertEquals("x:\n" + " test: \n" + " null: ~\n" + " string: string\n" + " list<string>:\n" + " - item1\n" + " - item2\n" + " - item3\n" + " child:\n" + " y:\n" + " outputCols:\n" + " - Name (string)\n" + " - Year (integer)\n" + " Join Type: INNER JOIN\n" + " Criteria: Item.ID = History.ID\n" + " Other: ~\n", example1().toYaml()); }
public String toYaml() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, true, builder); return builder.toString(); }
PlanNode implements Externalizable { public String toYaml() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, true, builder); return builder.toString(); } }
PlanNode implements Externalizable { public String toYaml() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, true, builder); return builder.toString(); } PlanNode();  PlanNode(String name); }
PlanNode implements Externalizable { public String toYaml() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, true, 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 { public String toYaml() { StringBuilder builder = new StringBuilder(); visitNode(this, 0, true, 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);  }