@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());
}