Package org.apache.drill.exec.rpc.user

Examples of org.apache.drill.exec.rpc.user.QueryResultBatch


                    Files.toString(FileUtils.getResourceAsFile(physicalPlan), Charsets.UTF_8)
                            .replace("#{TEST_FILE}", resourceFile));

            RecordBatchLoader batchLoader = new RecordBatchLoader(bit.getContext().getAllocator());

            QueryResultBatch batch = results.get(1);
            assertTrue(batchLoader.load(batch.getHeader().getDef(), batch.getData()));


            int i = 0;
            for (VectorWrapper<?> v : batchLoader) {
View Full Code Here


    if(currentRecord+1 < currentBatch.getRecordCount()){
      currentRecord++;
      return true;
    }else{
      try {
        QueryResultBatch qrb = listener.getNext();
        recordBatchCount++;
        while(qrb != null && qrb.getHeader().getRowCount() == 0 && !first){
          qrb.release();
          qrb = listener.getNext();
          recordBatchCount++;
        }

        first = false;

        if(qrb == null){
          finished = true;
          return false;
        }else{
          currentRecord = 0;
          boolean changed = currentBatch.load(qrb.getHeader().getDef(), qrb.getData());
          schema = currentBatch.getSchema();
          if(changed) updateColumns();
          if (redoFirstNext && currentBatch.getRecordCount() == 0) {
            redoFirstNext = false;
          }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.rpc.user.QueryResultBatch

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.