예제 #1
0
 /**
  * @param \Riak\Client\Core\Query\Index\RiakIndex $index
  */
 public function addIndex(RiakIndex $index)
 {
     $this->list[$index->getName()] = $index;
 }
예제 #2
0
 /**
  * @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);
 }