public function getChunkIterator($refresh = false) { if ($refresh || $this->_chunkIterator === null) { $this->_chunkIterator = new \IteratorIterator($this->getChunkCursor($refresh)); $this->_chunkIterator->rewind(); } return $this->_chunkIterator; }