code: @Override
  	protected MemorySegment nextSegment(MemorySegment current, int positionInCurrent) throws EOFException
  	{
  		if (++this.currentSegmentIndex < this.segments.length) {
  			return this.segments[this.currentSegmentIndex];
  		} else {
  			throw new EOFException();
  		}
  	}
docs: /* (non-Javadoc)
  @see eu.stratosphere.pact.runtime.io.AbstractPagedOutputViewV2#nextSegment(eu.stratosphere.nephele.services.memorymanager.MemorySegment, int)