Esempio n. 1
0
 @Override
 protected void post() {
   for (DataWriter<I> writer : tasks) {
     writer.post();
     writer.close();
   }
 }
Esempio n. 2
0
 @Override
 protected void pre() {
   for (DataWriter<I> writer : tasks) {
     writer.open();
     writer.pre();
   }
 }
Esempio n. 3
0
 @Override
 protected List<Object> execute(DataWriter<I> writer, List<I> batch) {
   writer.write(batch);
   return SINGLETON_LIST;
 }