Exemplo n.º 1
0
 @Override
 public void finish() {
   if (finished.compareAndSet(false, true)) {
     consumeRemaining();
     downstream.finish();
   }
 }
Exemplo n.º 2
0
 private void consumeRemaining() {
   if (prevRowMergingIterator == null) {
     return;
   }
   while (prevRowMergingIterator.hasNext()) {
     boolean wantMore = downstream.setNextRow(prevRowMergingIterator.next());
     if (!wantMore) {
       break;
     }
   }
 }
Exemplo n.º 3
0
 @Override
 public void fail(Throwable e) {
   if (!finished.getAndSet(true)) {
     downstream.fail(e);
   }
 }