<?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);
/** * @return \Kbrw\RiakBundle\Model\MapReduce\MapReducePhase */ public function addNewReducePhase() { $phase = new MapReducePhase(); $phase->setQuery($this); $this->phases[] = new PhaseContainer\ReducePhaseContainer($phase); return $phase; }
<?php use Kbrw\RiakBundle\Model\MapReduce\MapReducePhase; $object = new MapReducePhase(); $object->setLanguage("javascript")->setSource("function(v) { return [v]; }")->setKeep(true);
<?php use Kbrw\RiakBundle\Model\MapReduce\MapReducePhase; $object = new MapReducePhase(); $object->setLanguage("javascript")->setName("Riak.mapValuesJson");