Example #1
0
 public function __construct(Command\Builder\TimeSeries\DeleteRow $builder)
 {
     parent::__construct($builder);
     $this->table = $builder->getTable();
     $this->key = $builder->getKey();
 }
Example #2
0
 /**
  * @return Command\DataType\Map\Response
  */
 public function execute()
 {
     return parent::execute();
 }
Example #3
0
 public function __construct(Command\Builder\TimeSeries\StoreRows $builder)
 {
     parent::__construct($builder);
     $this->table = $builder->getTable();
     $this->rows = $builder->getRows();
 }
Example #4
0
 public function __construct(Command\Builder\FetchStats $builder)
 {
     parent::__construct($builder);
 }
Example #5
0
 public function __construct(Command\Builder\Ping $builder)
 {
     parent::__construct($builder);
 }
Example #6
0
 public function __construct(Command\Builder\TimeSeries\Query $builder)
 {
     parent::__construct($builder);
     $this->query = $builder->getQuery();
     $this->interps = $builder->getInterps();
 }
Example #7
0
 /**
  * @param \ProtobufMessage|Api\Pb\Message\RpbGetReq|Api\Pb\Message\RpbPutReq|Api\Pb\Message\RpbDelReq $message
  * @param Command $command
  */
 protected function setOptionsOnMessage(\ProtobufMessage &$message, Command $command)
 {
     if ($command->getParameter('n_val')) {
         $message->setNVal($command->getParameter('n_val'));
     }
     if ($command->getParameter('r')) {
         $message->setR($command->getParameter('r'));
     }
     if ($command->getParameter('w')) {
         $message->setW($command->getParameter('w'));
     }
     if ($command->getParameter('pr')) {
         $message->setPr($command->getParameter('pr'));
     }
     if ($command->getParameter('pw')) {
         $message->setPw($command->getParameter('pw'));
     }
     if ($command->getParameter('dw')) {
         $message->setDw($command->getParameter('dw'));
     }
     if ($command->getParameter('rw')) {
         $message->setRw($command->getParameter('rw'));
     }
     if ($command->getParameter('basic_quorum')) {
         $message->setBasicQuorum($command->getParameter('basic_quorum'));
     }
     if ($command->getParameter('notfound_ok')) {
         $message->setNotfoundOk($command->getParameter('notfound_ok'));
     }
     if ($command->getParameter('if_modified')) {
         $message->setIfModified($command->getParameter('if_modified'));
     }
     if ($command->getParameter('if_not_modified')) {
         $message->setIfNotModified($command->getParameter('if_not_modified'));
     }
     if ($command->getParameter('return_body')) {
         $message->setReturnBody($command->getParameter('return_body'));
     }
     if ($command->getParameter('sloppy_quorum')) {
         $message->setSloppyQuorum($command->getParameter('sloppy_quorum'));
     }
     if ($command->getParameter('timeout')) {
         $message->setTimeout($command->getParameter('timeout'));
     }
 }