Package org.apache.drill.exec.work.foreman

Examples of org.apache.drill.exec.work.foreman.Foreman


  }

  public QueryId submitWork(UserClientConnection connection, RunQuery query){
    UUID uuid = UUID.randomUUID();
    QueryId id = QueryId.newBuilder().setPart1(uuid.getMostSignificantBits()).setPart2(uuid.getLeastSignificantBits()).build();
    Foreman foreman = new Foreman(bee, bee.getContext(), connection, id, query);
    bee.addNewForeman(foreman);
    return id;
  }
View Full Code Here


    bee.addNewForeman(foreman);
    return id;
  }
 
  public QueryResult getResult(UserClientConnection connection, RequestResults req){
    Foreman foreman = bee.getForemanForQueryId(req.getQueryId());
    if(foreman == null) return QueryResult.newBuilder().setQueryState(QueryState.UNKNOWN_QUERY).build();
    return foreman.getResult(connection, req);
  }
View Full Code Here

    if(foreman == null) return QueryResult.newBuilder().setQueryState(QueryState.UNKNOWN_QUERY).build();
    return foreman.getResult(connection, req);
  }

  public Ack cancelQuery(QueryId query){
    Foreman foreman = bee.getForemanForQueryId(query);
    if(foreman != null){
      foreman.cancel();
    }
    return Acks.OK;
  }
View Full Code Here

  }

  public QueryId submitWork(UserClientConnection connection, RunQuery query){
    UUID uuid = UUID.randomUUID();
    QueryId id = QueryId.newBuilder().setPart1(uuid.getMostSignificantBits()).setPart2(uuid.getLeastSignificantBits()).build();
    Foreman foreman = new Foreman(bee, bee.getContext(), connection, id, query);
    bee.addNewForeman(foreman);
    return id;
  }
View Full Code Here

    bee.addNewForeman(foreman);
    return id;
  }

  public QueryResult getResult(UserClientConnection connection, RequestResults req){
    Foreman foreman = bee.getForemanForQueryId(req.getQueryId());
    if(foreman == null) return QueryResult.newBuilder().setQueryState(QueryState.UNKNOWN_QUERY).build();
    return foreman.getResult(connection, req);
  }
View Full Code Here

    if(foreman == null) return QueryResult.newBuilder().setQueryState(QueryState.UNKNOWN_QUERY).build();
    return foreman.getResult(connection, req);
  }

  public Ack cancelQuery(QueryId query){
    Foreman foreman = bee.getForemanForQueryId(query);
    if(foreman != null){
      foreman.cancel();
    }
    return Acks.OK;
  }
View Full Code Here

        return new Response(RpcType.ACK, Acks.FAIL);
      }

    case RpcType.REQ_QUERY_STATUS_VALUE:
      QueryId queryId = get(pBody, QueryId.PARSER);
      Foreman foreman = bee.getForemanForQueryId(queryId);
      QueryProfile profile;
      if (foreman == null) {
        try {
          profile = bee.getContext().getPersistentStoreProvider().getPStore(QueryStatus.QUERY_PROFILE).get(QueryIdHelper.getQueryId(queryId));
        } catch (IOException e) {
View Full Code Here

  }

  public QueryId submitWork(UserClientConnection connection, RunQuery query) {
    UUID uuid = UUID.randomUUID();
    QueryId id = QueryId.newBuilder().setPart1(uuid.getMostSignificantBits()).setPart2(uuid.getLeastSignificantBits()).build();
    Foreman foreman = new Foreman(bee, bee.getContext(), connection, id, query);
    bee.addNewForeman(foreman);
    return id;
  }
View Full Code Here

    bee.addNewForeman(foreman);
    return id;
  }

  public QueryResult getResult(UserClientConnection connection, RequestResults req) {
    Foreman foreman = bee.getForemanForQueryId(req.getQueryId());
    if (foreman == null) {
      return QueryResult.newBuilder().setQueryState(QueryState.UNKNOWN_QUERY).build();
    }
    return foreman.getResult(connection, req);
  }
View Full Code Here

    }
    return foreman.getResult(connection, req);
  }

  public Ack cancelQuery(QueryId query) {
    Foreman foreman = bee.getForemanForQueryId(query);
    if(foreman != null) {
      foreman.cancel();
    }
    return Acks.OK;
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.work.foreman.Foreman

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.