@Override protected void pre() { for (DataReader<O> reader : tasks) { reader.open(); reader.pre(); } }
@Override protected void post() { for (DataReader<O> reader : tasks) { reader.post(); reader.close(); } }
@Override protected List<O> execute(DataReader<O> reader, List<Object> ignored) { List<O> read = reader.read(batchSize); return read; }