Exemplo n.º 1
0
 public function __construct(Command\Builder\IncrementCounter $builder)
 {
     parent::__construct($builder);
     $this->increment = $builder->getIncrement();
     $this->bucket = $builder->getBucket();
     $this->location = $builder->getLocation();
 }
Exemplo n.º 2
0
 public function __construct(Command\Builder\MapReduce\FetchObjects $builder)
 {
     parent::__construct($builder);
     $this->inputs = $builder->getInputs();
     // query needs to be a list
     $this->query = $builder->getQuery();
 }
Exemplo n.º 3
0
 public function __construct(Command\Builder\UpdateHll $builder)
 {
     parent::__construct($builder);
     $this->add_all = $builder->getAddAll();
     $this->bucket = $builder->getBucket();
     $this->location = $builder->getLocation();
 }
Exemplo n.º 4
0
 public function __construct(Command\Builder\UpdateMap $builder)
 {
     parent::__construct($builder);
     $this->remove = $builder->getRemove();
     $this->registers = $builder->getRegisters();
     $this->flags = $builder->getFlags();
     $this->counters = $builder->getCounters();
     $this->sets = $builder->getSets();
     $this->maps = $builder->getMaps();
     $this->bucket = $builder->getBucket();
     $this->location = $builder->getLocation();
 }
Exemplo n.º 5
0
 public function __construct(Command\Builder\QueryIndex $builder)
 {
     parent::__construct($builder);
     $this->bucket = $builder->getBucket();
     $this->indexName = $builder->getIndexName();
     if ($builder->isRangeQuery()) {
         $this->lowerBound = $builder->getLowerBound();
         $this->upperBound = $builder->getUpperBound();
         $this->isRangeQuery = true;
     } else {
         $this->match = $builder->getMatchValue();
         $this->isMatchQuery = true;
     }
     $continuation = $builder->getContinuation();
     if (!empty($continuation)) {
         $this->parameters['continuation'] = $continuation;
     }
     $maxResults = $builder->getMaxResults();
     if (!empty($maxResults)) {
         $this->parameters['max_results'] = $maxResults;
     }
     $returnTerms = $builder->getReturnTerms();
     if (!empty($returnTerms)) {
         $this->parameters['return_terms'] = $returnTerms ? 'true' : 'false';
     }
     $paginationSort = $builder->getPaginationSort();
     if (!empty($paginationSort)) {
         $this->parameters['pagination_sort'] = $paginationSort ? 'true' : 'false';
     }
     $termRegex = $builder->getTermFilter();
     if (!empty($termRegex)) {
         $this->parameters['term_regex'] = $termRegex;
     }
     $timeout = $builder->getTimeout();
     if (!empty($timeout)) {
         $this->parameters['timeout'] = $timeout;
     }
 }
Exemplo n.º 6
0
 public function __construct(Command\Builder\FetchMap $builder)
 {
     parent::__construct($builder);
     $this->bucket = $builder->getBucket();
     $this->location = $builder->getLocation();
 }
Exemplo n.º 7
0
 public function __construct(Command\Builder\TimeSeries\DeleteRow $builder)
 {
     parent::__construct($builder);
     $this->table = $builder->getTable();
     $this->key = $builder->getKey();
 }
Exemplo n.º 8
0
 public function __construct(Command\Builder\SetBucketProperties $builder)
 {
     parent::__construct($builder);
     $this->bucket = $builder->getBucket();
     $this->properties = $builder->getProperties();
 }
Exemplo n.º 9
0
 public function __construct(Command\Builder\Search\DeleteIndex $builder)
 {
     parent::__construct($builder);
     $this->name = $builder->getName();
 }
Exemplo n.º 10
0
 public function __construct(Command\Builder\Search\StoreIndex $builder)
 {
     parent::__construct($builder);
     $this->name = $builder->getName();
     $this->schema = $builder->getSchema();
 }
Exemplo n.º 11
0
 public function __construct(Command\Builder\TimeSeries\StoreRows $builder)
 {
     parent::__construct($builder);
     $this->table = $builder->getTable();
     $this->rows = $builder->getRows();
 }
Exemplo n.º 12
0
 public function __construct(Command\Builder\FetchStats $builder)
 {
     parent::__construct($builder);
 }
Exemplo n.º 13
0
 public function __construct(Command\Builder\Search\FetchSchema $builder)
 {
     parent::__construct($builder);
     $this->name = $builder->getSchemaName();
 }
Exemplo n.º 14
0
 public function __construct(Command\Builder\Ping $builder)
 {
     parent::__construct($builder);
 }
Exemplo n.º 15
0
 public function __construct(Command\Builder\Search\FetchObjects $builder)
 {
     parent::__construct($builder);
     $this->index_name = $builder->getIndexName();
 }
Exemplo n.º 16
0
 public function __construct(Command\Builder\TimeSeries\Query $builder)
 {
     parent::__construct($builder);
     $this->query = $builder->getQuery();
     $this->interps = $builder->getInterps();
 }