Package org.apache.drill.exec.store.pojo

Examples of org.apache.drill.exec.store.pojo.PojoRecordReader


  @SuppressWarnings({ "rawtypes", "unchecked" })
  @Override
  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

Related Classes of org.apache.drill.exec.store.pojo.PojoRecordReader

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.