コード例 #1
0
ファイル: FetchValue.php プロジェクト: php-riak/riak-client
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $config = $cluster->getRiakConfig();
     $operation = new FetchOperation($config, $this->location, $this->options);
     $response = $cluster->execute($operation);
     return $response;
 }
コード例 #2
0
ファイル: FetchSet.php プロジェクト: php-riak/riak-client
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $config = $cluster->getRiakConfig();
     $converter = $config->getCrdtResponseConverter();
     $operation = new FetchSetOperation($converter, $this->location, $this->options);
     $response = $cluster->execute($operation);
     return $response;
 }
コード例 #3
0
ファイル: StoreMap.php プロジェクト: php-riak/riak-client
 /**
  * {@inheritdoc}
  */
 public function execute(RiakCluster $cluster)
 {
     $op = $this->update->getOp();
     $config = $cluster->getRiakConfig();
     $converter = $config->getCrdtResponseConverter();
     $operation = new StoreMapOperation($converter, $this->location, $op, $this->context, $this->options);
     $response = $cluster->execute($operation);
     return $response;
 }