예제 #1
0
 /**
  * @see Collection::aggregate()
  */
 public function aggregate(array $pipeline, array $options = array())
 {
     if (!array_key_exists(0, $pipeline)) {
         $pipeline = func_get_args();
         $options = array();
     }
     $this->log(array('aggregate' => true, 'pipeline' => $pipeline, 'options' => $options));
     return parent::aggregate($pipeline, $options);
 }
예제 #2
0
파일: Builder.php 프로젝트: cosmow/riak
 /**
  * Executes the aggregation pipeline
  *
  * @param array $options
  * @return Iterator
  */
 public function execute($options = array())
 {
     return $this->collection->aggregate($this->getPipeline(), $options);
 }