예제 #1
0
<?php

use Kbrw\RiakBundle\Model\MapReduce\MapReducePhase;
$object = new MapReducePhase();
$object->setLanguage("erlang")->setModule("riak_mapreduce")->setFunction("map_object_value");
<?php

use Kbrw\RiakBundle\Model\MapReduce\MapReducePhase;
$object = new MapReducePhase();
$object->setLanguage("javascript")->setBucket("myjs")->setKey("mymap")->setKeep(false);
예제 #3
0
 /**
  * @return \Kbrw\RiakBundle\Model\MapReduce\MapReducePhase
  */
 public function addNewReducePhase()
 {
     $phase = new MapReducePhase();
     $phase->setQuery($this);
     $this->phases[] = new PhaseContainer\ReducePhaseContainer($phase);
     return $phase;
 }
예제 #4
0
<?php

use Kbrw\RiakBundle\Model\MapReduce\MapReducePhase;
$object = new MapReducePhase();
$object->setLanguage("javascript")->setSource("function(v) { return [v]; }")->setKeep(true);
예제 #5
0
<?php

use Kbrw\RiakBundle\Model\MapReduce\MapReducePhase;
$object = new MapReducePhase();
$object->setLanguage("javascript")->setName("Riak.mapValuesJson");