Пример #1
0
 @Override
 protected void pre() {
   for (DataReader<O> reader : tasks) {
     reader.open();
     reader.pre();
   }
 }
Пример #2
0
 @Override
 protected void post() {
   for (DataReader<O> reader : tasks) {
     reader.post();
     reader.close();
   }
 }
Пример #3
0
 @Override
 protected List<O> execute(DataReader<O> reader, List<Object> ignored) {
   List<O> read = reader.read(batchSize);
   return read;
 }