Package org.apache.drill.exec.proto.BitControl

Examples of org.apache.drill.exec.proto.BitControl.InitializeFragments


  private void sendRemoteFragments(DrillbitEndpoint assignment, Collection<PlanFragment> fragments, CountDownLatch latch){
    InitializeFragments.Builder fb = InitializeFragments.newBuilder();
    for(PlanFragment f : fragments){
      fb.addFragment(f);
    }
    InitializeFragments initFrags = fb.build();

    logger.debug("Sending remote fragments to node {} with data {}", assignment, initFrags);
    FragmentSubmitListener listener = new FragmentSubmitListener(assignment, initFrags, latch);
    controller.getTunnel(assignment).sendFragments(listener, initFrags);
  }
View Full Code Here


      bee.getContext().getWorkBus().status( get(pBody, FragmentStatus.PARSER));
      // TODO: Support a type of message that has no response.
      return DataRpcConfig.OK;

    case RpcType.REQ_INIATILIZE_FRAGMENTS_VALUE:
      InitializeFragments fragments = get(pBody, InitializeFragments.PARSER);
      for(int i =0; i < fragments.getFragmentCount(); i++){
        startNewRemoteFragment(fragments.getFragment(i));
      }
      return DataRpcConfig.OK;

    case RpcType.REQ_QUERY_STATUS_VALUE:
      QueryId queryId = get(pBody, QueryId.PARSER);
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.proto.BitControl.InitializeFragments

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.