Package org.apache.tajo

Examples of org.apache.tajo.ExecutionBlockId


    Configuration conf = new TajoConf();

    QueryUnitAttemptScheduleEvent.QueryUnitAttemptScheduleContext scheduleContext =
        new QueryUnitAttemptScheduleEvent.QueryUnitAttemptScheduleContext();

    ExecutionBlockId ebId = TajoIdUtils.createExecutionBlockId("eb_000001_00001_00001");

    for (int i = 0; i < 10; i++) {
      QueryUnitId id = new QueryUnitId(ebId, i);
      QueryUnit queryUnit = new QueryUnit(conf, scheduleContext, id, true, null);
      queryUnits.add(queryUnit);
View Full Code Here


  public static final DecimalFormat MASTER_ID_FORMAT = new DecimalFormat("0000000000000");

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

    return new ExecutionBlockId(new QueryId(tokens[1], Integer.parseInt(tokens[2])), Integer.parseInt(tokens[3]));
  }
View Full Code Here

  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

Related Classes of org.apache.tajo.ExecutionBlockId

Copyright © 2018 www.massapicom. 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.