Examples of addHNode()


Examples of edu.isi.karma.rep.HNodePath.addHNode()

      if (path.contains(factory.getHNode(newHNodeId))) { 
        if (path.getLeaf().getId().compareTo(newHNodeId) != 0) {
          HNodePath hp = new HNodePath();
          HNode hn = path.getFirst();
          while (hn.getId().compareTo(newHNodeId) != 0) {
            hp.addHNode(hn);
            path = path.getRest();
            hn = path.getFirst();
          }
          hp.addHNode(hn);
          selectedPath = hp;
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath.addHNode()

          while (hn.getId().compareTo(newHNodeId) != 0) {
            hp.addHNode(hn);
            path = path.getRest();
            hn = path.getFirst();
          }
          hp.addHNode(hn);
          selectedPath = hp;
        }
        else
          selectedPath = path;
      }
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

      HTable headers = getWorksheet().getHeaders();
      List<String> headersList = new ArrayList<String>();
      for (int i = 0; i < data.get(0).size(); i++)
      {
        HNode hNode = null;
        hNode = headers.addHNode(data.get(0).get(i), HNodeType.Regular, getWorksheet(), getFactory());
        headersList.add(hNode.getId());
      }

      /**
       * Add the data *
 
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

    if(newhNode == null) {
      HTable hTable = workspace.getFactory().getHTable(hNode.getHTableId());
      newhNode = hTable.getHNodeFromColumnName(newColName);
      if(newhNode == null)
      {
        newhNode = hTable.addHNode(newColName, HNodeType.Transformation, wk, workspace.getFactory());
      }
      if(newhNode.getNestedTable() == null)
      {
        HTable newTable = newhNode.addNestedTable("Comma Split Values", wk, workspace.getFactory());
        newTable.addHNode("Values", HNodeType.Transformation, wk, workspace.getFactory());
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

        newhNode = hTable.addHNode(newColName, HNodeType.Transformation, wk, workspace.getFactory());
      }
      if(newhNode.getNestedTable() == null)
      {
        HTable newTable = newhNode.addNestedTable("Comma Split Values", wk, workspace.getFactory());
        newTable.addHNode("Values", HNodeType.Transformation, wk, workspace.getFactory());
      }
      newHNodeId = newhNode.getId();
      hNode.addAppliedCommand("SplitValuesCommand", newhNode);
    } else {
      logger.info("Column names are same, re-compute the split values");
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

    // Now that we cleared the values it is safe to add the nested table.
    //
    // Add the nested new HTable to the hNode
    HTable newTable = hNode.addNestedTable("Comma Split Values", worksheet,
        factory);
    splitValueHNodeId = newTable.addHNode("Values", HNodeType.Transformation, worksheet, factory)
        .getId();

    for (Node node : nodes) {
      //String originalVal = node.getValue().asString();
      String originalVal = oldNodeValueMap.get(node).asString();
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

    String addressContainer = w.addHNode("Address", HNodeType.Regular, f).getId();
    String relativesContainer = w.addHNode("Relatives", HNodeType.Regular, f).getId();

    HTable personTable = w.getHeaders().getHNode(personContainer)
        .addNestedTable("Person Table", w, f);
    String firstName = personTable.addHNode("First Name", HNodeType.Regular, w, f).getId();
    String lastName = personTable.addHNode("Last Name", HNodeType.Regular, w, f).getId();

    HTable addressTable = w.getHeaders().getHNode(addressContainer)
        .addNestedTable("Address Table", w, f);
    String what = addressTable.addHNode("What", HNodeType.Regular, w, f).getId();
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

    String relativesContainer = w.addHNode("Relatives", HNodeType.Regular, f).getId();

    HTable personTable = w.getHeaders().getHNode(personContainer)
        .addNestedTable("Person Table", w, f);
    String firstName = personTable.addHNode("First Name", HNodeType.Regular, w, f).getId();
    String lastName = personTable.addHNode("Last Name", HNodeType.Regular, w, f).getId();

    HTable addressTable = w.getHeaders().getHNode(addressContainer)
        .addNestedTable("Address Table", w, f);
    String what = addressTable.addHNode("What", HNodeType.Regular, w, f).getId();
    String address = addressTable.addHNode("Address", HNodeType.Regular, w, f).getId();
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

    String firstName = personTable.addHNode("First Name", HNodeType.Regular, w, f).getId();
    String lastName = personTable.addHNode("Last Name", HNodeType.Regular, w, f).getId();

    HTable addressTable = w.getHeaders().getHNode(addressContainer)
        .addNestedTable("Address Table", w, f);
    String what = addressTable.addHNode("What", HNodeType.Regular, w, f).getId();
    String address = addressTable.addHNode("Address", HNodeType.Regular, w, f).getId();

    HTable relativesTable = w.getHeaders().getHNode(relativesContainer)
        .addNestedTable("Relatives Person Table", w, f);
    String relFirstName = relativesTable.addHNode("Relatives First Name", HNodeType.Regular,
View Full Code Here

Examples of edu.isi.karma.rep.HTable.addHNode()

    String lastName = personTable.addHNode("Last Name", HNodeType.Regular, w, f).getId();

    HTable addressTable = w.getHeaders().getHNode(addressContainer)
        .addNestedTable("Address Table", w, f);
    String what = addressTable.addHNode("What", HNodeType.Regular, w, f).getId();
    String address = addressTable.addHNode("Address", HNodeType.Regular, w, f).getId();

    HTable relativesTable = w.getHeaders().getHNode(relativesContainer)
        .addNestedTable("Relatives Person Table", w, f);
    String relFirstName = relativesTable.addHNode("Relatives First Name", HNodeType.Regular,
        w, f).getId();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.