@Override public E next() { if (this.position <= this.last) { try { E record; if (objectReuseEnabled) { record = this.buffer.getRecord(this.recordReuse, this.position); } else { record = this.buffer.getRecord(this.position); } this.position++; return record; } catch (IOException ioex) { LOG.error("Error retrieving a value from a buffer.", ioex); throw new RuntimeException("Could not load the next value: " + ioex.getMessage(), ioex); } } else { throw new NoSuchElementException(); } }
@Override public E next() { if (this.position <= this.last) { try { E record; if (objectReuseEnabled) { record = this.buffer.getRecord(this.recordReuse, this.position); } else { record = this.buffer.getRecord(this.position); } this.position++; return record; } catch (IOException ioex) { LOG.error("Error retrieving a value from a buffer.", ioex); throw new RuntimeException("Could not load the next value: " + ioex.getMessage(), ioex); } } else { throw new NoSuchElementException(); } }
@Override public E next() { if (this.position <= this.last) { try { E record; if (objectReuseEnabled) { record = this.buffer.getRecord(this.recordReuse, this.position); } else { record = this.buffer.getRecord(this.position); } this.position++; return record; } catch (IOException ioex) { LOG.error("Error retrieving a value from a buffer.", ioex); throw new RuntimeException("Could not load the next value: " + ioex.getMessage(), ioex); } } else { throw new NoSuchElementException(); } }
@Override public E next() { if (this.position <= this.last) { try { E record; if (objectReuseEnabled) { record = this.buffer.getRecord(this.recordReuse, this.position); } else { record = this.buffer.getRecord(this.position); } this.position++; return record; } catch (IOException ioex) { LOG.error("Error retrieving a value from a buffer.", ioex); throw new RuntimeException("Could not load the next value: " + ioex.getMessage(), ioex); } } else { throw new NoSuchElementException(); } }