Ejemplo n.º 1
0
 /**
  * @return array
  */
 private function getNextDataPage()
 {
     $result = [];
     $i = 0;
     do {
         $current = $this->cursor->current();
         if (null !== $current && false !== $current) {
             $result[] = $current;
         }
         $i++;
         $this->cursor->next();
     } while ($i < $this->pageSize && null !== $current && false !== $current);
     if (empty($result)) {
         return false;
     }
     return $result;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function timeout($ms)
 {
     $this->cursor->timeout($ms);
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function maxTimeMS($ms)
 {
     $this->cursor->maxTimeMS($ms);
     return $this;
 }