engine.run(new Pagerank(), this.numIterations); final ConsumerIteratorAdapter<Tuple2<Long, Float>> consumerIteratorAdapter = new ConsumerIteratorAdapter<>(); final Consumer<Tuple2<Long, Float>> consumer = consumerIteratorAdapter.getConsumer(); final Iterator<Tuple2<Long, Float>> iterator = consumerIteratorAdapter.getIterator(); throw new RheemException(e); } finally { consumerIteratorAdapter.declareLastAdd();