Package org.apache.tajo.master.session

Examples of org.apache.tajo.master.session.Session


  }
  public static QueryUnitAttemptId newQueryUnitAttemptId(MasterPlan plan) {
    return QueryIdFactory.newQueryUnitAttemptId(QueryIdFactory.newQueryUnitId(plan.newExecutionBlockId()), 0);
  }
  public static Session createDummySession() {
    return new Session(UUID.randomUUID().toString(), dummyUserInfo.getUserName(), TajoConstants.DEFAULT_DATABASE_NAME);
  }
View Full Code Here


   * @throws PlanningException
   */
  private static Target[] getRawTargets(String query, boolean condition) throws PlanningException,
      InvalidStatementException {

    Session session = LocalTajoTestingUtility.createDummySession();
    List<ParsedResult> parsedResults = SimpleParser.parseScript(query);
    if (parsedResults.size() > 1) {
      throw new RuntimeException("this query includes two or more statements.");
    }
    Expr expr = analyzer.parse(parsedResults.get(0).getStatement());
View Full Code Here

TOP

Related Classes of org.apache.tajo.master.session.Session

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.