Moves the scan to the next record. The method moves to the next RHS
record, if possible. Otherwise, it moves to the next LHS record and the
first RHS record. If there are no more LHS records, the method returns
false.

@see Scan#next()
169944
@Override
	public boolean next() {
		if (isLhsEmpty)
			return false;
		if (s2.next())
			return true;
		else if (!(isLhsEmpty = !s1.next())) {
			s2.beforeFirst();
			return s2.next();
		} else {
			return false;
		}
	}
572246
public function next()
    {
        if ($this->current === null) {
            $this->rewind();
        }

        if ($this->validationResult !== static::END_ITERATION) {
            $this->key++;

            $this->incrementCurrentDateUntilValid();
        }
    }
30273
public function MoveNext()
	{
		if ( ! $this->iteratorStarted )
		{
			$this->Init();
			$this->pos = -1;
			$this->iteratorStarted = true;
		}

		/**
		 * @var XPathItem $item
		 */
		$item = $this->NextItem();
		if ( ! is_null( $item ) )
		{
			$this->pos++;
			$this->curr = $item;
			return true;
		}

		$this->iteratorFinished = true;
		return false;
	}
1152327
public Object[] nextRecord() {
        try {
            int nextByte;
            do {
                nextByte = dataInput.readByte();
                if (nextByte == DATA_ENDED) {
                    return null;
                } else if (nextByte == DATA_DELETED) {
                    dataInput.skipBytes(header.getRecordLength() - 1);
                }
            } while (nextByte == DATA_DELETED);

            Object recordObjects[] = new Object[header.getFieldsCount()];
            for (int i = 0; i < header.getFieldsCount(); i++) {
                recordObjects[i] = readFieldValue(header.getField(i));
            }
            return recordObjects;
        } catch (EOFException e) {
            return null; // we currently end reading file
        } catch (IOException e) {
            throw new DbfException("Cannot read next record form Dbf file", e);
        }
    }
84021
public boolean next() throws JspCoreException {
        if (isEmpty()) // Query results is empty
            return false;
        if (this.currRow == size() - 1) // we are at the end 
            return false;
        setCurrRow(getCurrRow() + 1);
        return true;
    }
692238
public function MoveNext()
	{
		if ( ! $this->iterationStarted )
		{
			$this->current = $this->original->CloneInstane();
			$this->iterationStarted = true;
		}
		if ( ! is_null( $this-current ) && $this->current->MoveNext() )
		{
			return true;
		}
		$this->current = null;
		return false;
	}
67507
boolean next() {
    index_++;
    while (index_ < maxEntries_) {
      if (couponsArr_[offset_ + index_] != 0) { return true; }
      index_++;
    }
    return false;
  }
734364
public function next()
    {
        $this->index++;

        if ($this->valid()) {
            $model = $this->offsetGet($this->index);

            if (in_array($model->UniqueIdentifier, $this->filteredIds)){
                $this->next();
            }
        }
    }
669305
@SuppressWarnings("unchecked")
	public REC next() {
		checkDirection(true);

		ORecordInternal<?> record = getRecord();

		// ITERATE UNTIL THE NEXT GOOD RECORD
		while (hasNext()) {
			record = getTransactionEntry();
			if (record != null)
				return (REC) record;

			if ((record = readCurrentRecord(null, +1)) != null)
				// FOUND
				return (REC) record;
		}

		throw new NoSuchElementException();
	}
99020
public function next()
    {
        if (count($this->data) > 0) {
            array_shift($this->data);
        }
        ++$this->position;

        if ($this->position > $this->numberOfRecords()) {
            return;
        }

        if (count($this->data) == 0) {
            $this->fetchMore();
        }

        if (count($this->data) == 0) {
            return;
        }
    }
830956
@SuppressWarnings("unchecked")
	@Override
	public REC previous() {
		checkDirection(false);

		ORecordInternal<?> record = getRecord();

		// ITERATE UNTIL THE PREVIOUS GOOD RECORD
		while (hasPrevious()) {
			if ((record = readCurrentRecord(record, -1)) != null)
				// FOUND
				return (REC) record;
		}

		throw new NoSuchElementException();
	}
306761
public function next()
        {
            if (false !== $this->skipNextIteration) {
                $this->skipNextIteration = false;
                return;
            }

            next($this->data);
        }
328558
@Override
    public Record nextRecord() {
        if(!hasNext()){ //Also triggers prefetch
            throw new NoSuchElementException("No next element");
        }
        Record toRet = next;
        next = null;
        return toRet;
    }
736927
public function next()
    {
        if (!isset($this->buffer[++$this->position])
            && $this->position != $this->resultSet->key() // Avoid calling next() when
                                                          // a complete iteration was already done
        ) {
            $this->resultSet->next();
        }
    }
1134935
public function next() {
        $this->page->next();
        $this->currentRecord++;

        if ($this->overLimit()) {
            return;
        }

        if (!$this->page->valid()) {
            if ($this->overPageLimit()) {
                return;
            }
            $this->page = $this->page->nextPage();
            $this->currentPage++;
        }
    }
317590
public void advance() {
        String s = null;
        if (baseIterator.hasNext())
            next = baseIterator.next();
        else
            next = null;
    }
878886
@SuppressWarnings("unchecked")
  @Override
  public REC previous() {
    checkDirection(false);

    if (currentRecord != null)
      try {
        // RETURN LAST LOADED RECORD
        return (REC) currentRecord;
      } finally {
        currentRecord = null;
      }

    ORecordInternal<?> record = getRecord();

    // MOVE BACKWARD IN THE CURRENT CLUSTER
    while (hasPrevious()) {
      if (currentRecord != null)
        try {
          // RETURN LAST LOADED RECORD
          return (REC) currentRecord;
        } finally {
          currentRecord = null;
        }

      if (record == null)
        record = readCurrentRecord(null, -1);

      if (record != null)
        // FOUND
        if (include(record))
          return (REC) record;
    }

    record = getTransactionEntry();
    if (record != null)
      return (REC) record;

    throw new NoSuchElementException("Direction: backward, last position was: " + current + ", range: " + beginRange + "-"
        + endRange);
  }