Examples of HNodePath


Examples of edu.isi.karma.rep.HNodePath

    if (hNode.hasNestedTable()) {
      logger.error("Column has nested table. Cannot perform split operation.");
      return;
    }

    HNodePath selectedPath = null;
    List<HNodePath> columnPaths = worksheet.getHeaders().getAllPaths();
    for (HNodePath path : columnPaths) {
      if (path.getLeaf().getId().equals(hNodeId)) {
        hNode = path.getLeaf();
        selectedPath = path;
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

    Worksheet wk = workspace.getFactory().getWorksheet(worksheetId);
    SuperSelection selection = getSuperSelection(wk);
    List<HNodePath> columnPaths = wk.getHeaders().getAllPaths();

    // Get the path which has the split value hNodeId
    HNodePath selectedPath = null;
    for (HNodePath path : columnPaths) {
      if (path.getLeaf().getId().equals(splitValueHNodeId)) {
        selectedPath = path;
      }
    }
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

    String Msg = String.format("submit end, Time,%d, Worksheet,%s",
        System.currentTimeMillis(), worksheetId);
    logger.info(Msg);
    String colnameString = "";
    UpdateContainer c = new UpdateContainer();
    HNodePath selectedPath = null;
    try {
      // obtain transformed results
      HashMap<String, String> rows = new HashMap<String, String>();
      colnameString = obtainTransformedResultsAndFindNewColumnName(
          workspace, rows);
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

  private HNodePath findPathForNewColumn(Workspace workspace,
      String colnameString) {
    List<HNodePath> columnPaths = workspace.getFactory()
        .getWorksheet(worksheetId).getHeaders().getAllPaths();
    HNodePath selectedPath = null;
    for (HNodePath path : columnPaths) {
      if (path.getLeaf().getColumnName().compareTo(colnameString) == 0) {
        selectedPath = path;
        break;
      }
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

  private String obtainTransformedResultsAndFindNewColumnName(
      Workspace workspace, HashMap<String, String> rows) {

    String colnameString = "";
    HNodePath selectedPath = null;
    List<HNodePath> columnPaths = workspace.getFactory()
        .getWorksheet(worksheetId).getHeaders().getAllPaths();
    for (HNodePath path : columnPaths) {
      if (path.getLeaf().getId().equals(hNodeId)) {
        hTableId = path.getLeaf().getHTableId();
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

  @Override
  public UpdateContainer doIt(Workspace workspace) throws CommandException {
    Worksheet worksheet = workspace.getWorksheet(worksheetId);
    SuperSelection selection = getSuperSelection(worksheet);
    HNodePath selectedPath = null;
    List<HNodePath> columnPaths = worksheet.getHeaders().getAllPaths();
    for (HNodePath path : columnPaths) {
      if (path.getLeaf().getId().equals(hNodeId)) {
        selectedPath = path;
      }
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

    }
   
    // Create new vWorksheet using the new header order
    List<HNodePath> columnPaths = new ArrayList<HNodePath>();
    for (HNode node : wk.getHeaders().getSortedHNodes()) {
      HNodePath path = new HNodePath(node);
      columnPaths.add(path);
    }

   
    alignment = AlignmentManager.Instance().getAlignmentOrCreateIt(workspace.getId(), wk.getId(), ontMgr);
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

    String msg = String.format("Gen rule start,Time,%d, Worksheet,%s",System.currentTimeMillis(),worksheetId);
    logger.info(msg);
    // Get the HNode
    HashMap<String, String> rows = new HashMap<String, String>();
    HashMap<String, Integer> amb = new HashMap<String, Integer>();
    HNodePath selectedPath = null;
    List<HNodePath> columnPaths = wk.getHeaders().getAllPaths();
    for (HNodePath path : columnPaths) {
      if (path.getLeaf().getId().equals(hNodeId)) {
        selectedPath = path;
      }
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

    }
   
    // Create new vWorksheet using the new header order
    List<HNodePath> columnPaths = new ArrayList<HNodePath>();
    for (HNode node : wk.getHeaders().getSortedHNodes()) {
      HNodePath path = new HNodePath(node);
      columnPaths.add(path);
    }
   
    c.append(WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
    c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
View Full Code Here

Examples of edu.isi.karma.rep.HNodePath

    UpdateContainer c = new UpdateContainer();
   
    // Create new vWorksheet using the new header order
    List<HNodePath> columnPaths = new ArrayList<HNodePath>();
    for (HNode node : worksheetBeforeInvocation.getHeaders().getSortedHNodes()) {
      HNodePath path = new HNodePath(node);
      columnPaths.add(path);
    }
    workspace.getFactory().replaceWorksheet(this.worksheetId, this.worksheetBeforeInvocation);
   
    c.add(new ReplaceWorksheetUpdate(worksheetId, this.worksheetBeforeInvocation));
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.