Sets the start offset of the result set to offset. Returns $this to
allow for chaining (fluid interface)

@param integer $offset
@return QueryInterface
@api
197256
public function setOffset($offset)
    {
        $this->offset = $offset;
        $this->queryBuilder->setFirstResult($offset);
        return $this;
    }
834733
public function offsetSet($offset, $value)
    {
        $this->baseCursor->offsetSet($offset+$this->rangeStart, $value);
    }
1362526
public function limit($limit, $offset = null)
    {
        $this->q['limit']['limit'] = $limit;

        if (isset($offset)) {
            $this->q['limit']['offset'] = $offset;
        }

        return $this;
    }
398030
public function offsetGet($offset) {
        return (is_array($this->content) && isset($this->content[$offset]))?new self($this->content[$offset]):self::getEmptyContext();
    }
425998
public function limit($limit, $offset = null) {
		$this->_criteria->limit($limit, $offset);
		$this->_limit = (int) $limit;
				
		return $this;
	}
29444
public function setOffset($offset)
    {
        $current = $this->stream->tell();

        if ($current !== $offset) {
            // If the stream cannot seek to the offset position, then read to it
            if (!$this->stream->seek($offset)) {
                if ($current > $offset) {
                    throw new SeekException($this, $offset);
                } else {
                    $this->stream->read($offset - $current);
                }
            }
        }

        $this->offset = $offset;

        return $this;
    }
1287118
public function limit($limit, $offset = null)
    {
        if ($offset) {
            $this->getLimit()->setParams(array($limit, $offset));
        } else {
            $this->getLimit()->setParams(array($limit));
        }

        return $this;
    }
614934
public function offsetUnset($offset)
    {
        if (false === method_exists($this, 'set' . ucfirst($offset))) {
            unset($this->$offset);

            return $this;
        }

        return $this->offsetSet($offset, null);
    }
734934
public function offsetGet($offset)
  {
    if (!$this->container instanceof ArrayAccess)
    {
      $this->iteratorToList();
    }

    return $this->container->offsetGet($offset);
  }
18170
public function offset(int $offset): self
    {
        if (!isset($this->query['limit'][0])) {
            throw new BuilderException('Limit not set yet, call limit() first');
        }

        $this->query['limit'][1] = abs($offset);

        return $this;
    }
106967
public function limit($limit = 0, $offset = 0)
    {
        if (!$limit) {
            return $this;
        }
        if ($offset) {
            $limit .= " OFFSET {$offset}";
        }
        $this->_parts['limit'] = $limit;
        return $this;
    }
449737
public function Limit($Limit, $Offset = FALSE) {
      $this->_Limit = $Limit;

      if ($Offset !== FALSE)
         $this->_Offset = $Offset;

      return $this;
   }
144466
public function limit($limit, $offset = NULL)
	{
		$this->emptyResult();

		$this->queryBuilder->limit($limit, $offset);
		return $this;
	}
1340677
public function offsetGet($offset)
    {
        return isset($this->container[$offset]) ? $this->container[$offset] : null;
    }
244525
public function setOffset($offset) {
        if (!is_numeric($offset) || $offset < 0) {
            throw new \InvalidArgumentException("Invalid offset '$offset.'", 500);
        }

        $this->offset = (int)$offset;
        return $this;
    }
1346409
public function ahead(int $offset = 0): StreamInterface
    {
        $this->position = $this->getSize() - 1;

        if ( $offset !== 0 ) {
            throw new StreamException(
                'offset can not be used at string streams'
            );
        }

        return $this;
    }
272495
public function offset(int $offset) : QueryBuilder
    {
        $this->_query[] = "OFFSET";
        $this->_query[] = $offset;

        return $this;
    }