Examples of ScanBatch


Examples of org.apache.accumulo.tserver.Tablet.ScanBatch

            addResult(new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(scanSession.extent.toThrift()));
            return;
          }

          long t1 = System.currentTimeMillis();
          ScanBatch batch = scanSession.scanner.read();
          long t2 = System.currentTimeMillis();
          scanSession.nbTimes.addStat(t2 - t1);

          // there should only be one thing on the queue at a time, so
          // it should be ok to call add()
View Full Code Here

Examples of org.apache.accumulo.tserver.Tablet.ScanBatch

      if (scanSession.nextBatchTask == null) {
        scanSession.nextBatchTask = new NextBatchTask(scanID, scanSession.interruptFlag);
        resourceManager.executeReadAhead(scanSession.extent, scanSession.nextBatchTask);
      }

      ScanBatch bresult;
      try {
        bresult = scanSession.nextBatchTask.get(MAX_TIME_TO_WAIT_FOR_SCAN_RESULT_MILLIS, TimeUnit.MILLISECONDS);
        scanSession.nextBatchTask = null;
      } catch (ExecutionException e) {
        sessionManager.removeSession(scanID);
View Full Code Here

Examples of org.apache.accumulo.tserver.Tablet.ScanBatch

        IterConfig ic = compressedIters.decompress(tc.iterators);

        Scanner scanner = tablet.createScanner(range, 1, emptyCols, cs.auths, ic.ssiList, ic.ssio, false, cs.interruptFlag);

        try {
          ScanBatch batch = scanner.read();

          Value val = null;

          for (KVEntry entry2 : batch.results) {
            val = entry2.getValue();
View Full Code Here

Examples of org.apache.accumulo.tserver.Tablet.ScanBatch

      if (scanSession.nextBatchTask == null) {
        scanSession.nextBatchTask = new NextBatchTask(scanID, scanSession.interruptFlag);
        resourceManager.executeReadAhead(scanSession.extent, scanSession.nextBatchTask);
      }

      ScanBatch bresult;
      try {
        bresult = scanSession.nextBatchTask.get(MAX_TIME_TO_WAIT_FOR_SCAN_RESULT_MILLIS, TimeUnit.MILLISECONDS);
        scanSession.nextBatchTask = null;
      } catch (ExecutionException e) {
        sessionManager.removeSession(scanID);
View Full Code Here

Examples of org.apache.accumulo.tserver.Tablet.ScanBatch

        IterConfig ic = compressedIters.decompress(tc.iterators);

        Scanner scanner = tablet.createScanner(range, 1, emptyCols, cs.auths, ic.ssiList, ic.ssio, false, cs.interruptFlag);

        try {
          ScanBatch batch = scanner.read();

          Value val = null;

          for (KVEntry entry2 : batch.results) {
            val = entry2.getValue();
View Full Code Here

Examples of org.apache.accumulo.tserver.Tablet.ScanBatch

            addResult(new org.apache.accumulo.core.tabletserver.thrift.NotServingTabletException(scanSession.extent.toThrift()));
            return;
          }

          long t1 = System.currentTimeMillis();
          ScanBatch batch = scanSession.scanner.read();
          long t2 = System.currentTimeMillis();
          scanSession.nbTimes.addStat(t2 - t1);

          // there should only be one thing on the queue at a time, so
          // it should be ok to call add()
View Full Code Here

Examples of org.apache.drill.exec.physical.impl.ScanBatch

        );
      } catch (IOException e1) {
        throw new ExecutionSetupException(e1);
      }
    }
    return new ScanBatch(context, readers.iterator());
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.impl.ScanBatch

    List<MockScanEntry> entries = config.getReadEntries();
    List<RecordReader> readers = Lists.newArrayList();
    for(MockScanEntry e : entries){
      readers.add(new MockRecordReader(context, e));
    }
    return new ScanBatch(context, readers.iterator());
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.impl.ScanBatch

        List<RecordReader> readers = Lists.newArrayList();
        for (JSONGroupScan.ScanEntry e : entries) {
            readers.add(new JSONRecordReader(context, e.getPath(), config.getStorageEngine().getFileSystem(), config.getRef()));
        }

        return new ScanBatch(context, readers.iterator());
    }
View Full Code Here

Examples of org.apache.drill.exec.physical.impl.ScanBatch

  public RecordBatch getBatch(FragmentContext context, SystemTableScan scan, List<RecordBatch> children)
      throws ExecutionSetupException {
    Iterator<Object> iter = scan.getPlugin().getRecordIterator(context, scan.getTable());
    PojoRecordReader reader = new PojoRecordReader(scan.getTable().getPojoClass(), iter);

    return new ScanBatch(scan, context, Collections.singleton( (RecordReader) reader).iterator());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.