Examples of QueryUnitAttemptId


Examples of org.apache.tajo.QueryUnitAttemptId

  @Test
  public final void testPartitionedStorePlan() throws IOException, PlanningException {
    FileFragment[] frags = StorageManager.splitNG(conf, "default.score", score.getMeta(), score.getPath(),
        Integer.MAX_VALUE);
    QueryUnitAttemptId id = LocalTajoTestingUtility.newQueryUnitAttemptId(masterPlan);
    Path workDir = CommonTestingUtil.getTestDir("target/test-data/testPartitionedStorePlan");
    TaskAttemptContext ctx = new TaskAttemptContext(conf, id, new FileFragment[] { frags[0] }, workDir);
    ctx.setEnforcer(new Enforcer());
    Expr context = analyzer.parse(QUERIES[7]);
    LogicalPlan plan = planner.createPlan(session, context);
View Full Code Here

Examples of org.apache.tajo.QueryUnitAttemptId

  @Test
  public final void testPartitionedStorePlanWithEmptyGroupingSet()
      throws IOException, PlanningException {
    FileFragment[] frags = StorageManager.splitNG(conf, "default.score", score.getMeta(), score.getPath(),
        Integer.MAX_VALUE);
    QueryUnitAttemptId id = LocalTajoTestingUtility.newQueryUnitAttemptId(masterPlan);

    Path workDir = CommonTestingUtil.getTestDir(
        "target/test-data/testPartitionedStorePlanWithEmptyGroupingSet");
    TaskAttemptContext ctx = new TaskAttemptContext(conf, id, new FileFragment[] { frags[0] }, workDir);
    ctx.setEnforcer(new Enforcer());
View Full Code Here

Examples of org.apache.tajo.QueryUnitAttemptId

      return this.id;
    }
    if (!p.hasId()) {
      return null;
    }
    this.id = new QueryUnitAttemptId(p.getId());
    return this.id;
  }
View Full Code Here

Examples of org.apache.tajo.QueryUnitAttemptId

  }

  public static QueryUnitAttemptId parseQueryUnitAttemptId(String idStr) {
    String[] tokens = idStr.split("_");

    return new QueryUnitAttemptId(new QueryUnitId(
        new ExecutionBlockId(new QueryId(tokens[1], Integer.parseInt(tokens[2])), Integer.parseInt(tokens[3])),
        Integer.parseInt(tokens[4])), Integer.parseInt(tokens[5]));
  }
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.