示例#1
0
 /**
  * addLocationInput
  *
  * @param Riak\Location $location
  *
  * @return $this
  */
 public function addLocationInput(Riak\Location $location)
 {
     // default bucket type cannot be passed to the MR api due to a bug
     if ($location->getBucket()->getType() == 'default') {
         $input = [$location->getBucket()->getName(), $location->getKey()];
     } else {
         $input = [$location->getBucket()->getName(), $location->getKey(), '', $location->getBucket()->getType()];
     }
     $this->inputs[] = $input;
     return $this;
 }
 /**
  * @param Location $location
  *
  * @return $this
  */
 public function atLocation(Location $location)
 {
     $this->bucket = $location->getBucket();
     $this->location = $location;
     return $this;
 }