@Override public Tuple2<HiveKey, BytesWritable> next() { if (hasNext()) { return lastRecordOutput.next(); } throw new NoSuchElementException("There are no more elements"); }
while (inputIterator.hasNext() && !processingDone()) { try { processNextRecord(inputIterator.next()); if (lastRecordOutput.hasNext()) { return true; closeRecordProcessor(); isClosed = true;
while (inputIterator.hasNext() && !processingDone()) { try { processNextRecord(inputIterator.next()); if (lastRecordOutput.hasNext()) { return true; closeRecordProcessor(); isClosed = true;
@Override public Tuple2<HiveKey, BytesWritable> next() { if (hasNext()) { return lastRecordOutput.next(); } throw new NoSuchElementException("There are no more elements"); }