Package org.apache.drill.exec.physical.impl

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


    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

        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

  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

  static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(InfoSchemaBatchCreator.class);

  @Override
  public RecordBatch getBatch(FragmentContext context, InfoSchemaSubScan config, List<RecordBatch> children) throws ExecutionSetupException {
    RecordReader rr = config.getTable().getRecordReader(context.getRootSchema());
    return new ScanBatch(config, context, Collections.singleton(rr).iterator());
  }
View Full Code Here

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

  static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DirectBatchCreator.class);

  @Override
  public RecordBatch getBatch(FragmentContext context, DirectSubScan config, List<RecordBatch> children)
      throws ExecutionSetupException {
    return new ScanBatch(config, context, Collections.singleton(config.getReader()).iterator());
  }
View Full Code Here

      for (int i = 0; i < numParts; i++) {
        selectedPartitionColumns.add(i);
      }
    }

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

      for (int i = 0; i < numParts; i++) {
        selectedPartitionColumns.add(i);
      }
    }

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

    if (readers.size() == 0) {
      readers.add(new HiveRecordReader(table, null, null, config.getColumns(), context,
          config.getHiveReadEntry().hiveConfigOverride));
    }

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

TOP

Related Classes of org.apache.drill.exec.physical.impl.ScanBatch

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.