Beispiel #1
0
 /**
  * @param \Riak\Client\Core\Query\Index\RiakIndex $index
  */
 public function addIndex(RiakIndex $index)
 {
     $this->list[$index->getName()] = $index;
 }
 /**
  * @param array $indexes
  *
  * @return \Riak\Client\Core\Query\Index\RiakIndexList
  */
 private function createRiakIndexList(array $indexes)
 {
     $list = [];
     foreach ($indexes as $fullName => $values) {
         $list[] = RiakIndex::fromFullname($fullName, $values);
     }
     return new RiakIndexList($list);
 }