protected function setUp() { parent::setUp(); $namespace = new RiakNamespace('default', 'bucket'); $store = StoreBucketProperties::builder()->withAllowMulti(true)->withNVal(3)->withNamespace($namespace)->build(); $this->client->execute($store); }
protected function setUp() { parent::setUp(); $namespace = new RiakNamespace('sets', 'sets'); $command = StoreBucketProperties::builder()->withAllowMulti(true)->withNVal(3)->withNamespace($namespace)->build(); $this->client->execute($command); $this->key = uniqid(); $this->location = new RiakLocation($namespace, $this->key); }
protected function setUp() { parent::setUp(); $hash = hash('crc32', __CLASS__); $bucket = sprintf('test_riak_client_%s_index_query', $hash); $namespace = new RiakNamespace('default', $bucket); $this->namespace = $namespace; $this->setUpBucket(); $this->setUpData(); }
protected function setUp() { parent::setUp(); $hash = hash('crc32', __CLASS__); $bucket = sprintf('test_riak_client_%s_bucket_key_mapreduce', $hash); $namespace = new RiakNamespace(null, $bucket); $this->namespace = $namespace; $this->setUpBucket(); $this->setUpData(); }
protected function setUp() { parent::setUp(); $hash = hash('crc32', __CLASS__); $bucket = sprintf('test_riak_client_%s_cats', $hash); $index = sprintf('test_riak_client_%s_famous', $hash); $namespace = new RiakNamespace('default', $bucket); $data = new ThunderCatsData($this->client, $namespace, $index); $this->searchData = $data; $this->indexName = $index; $this->namespace = $namespace; $this->searchData->setUp(); }
protected function setUp() { parent::setUp(); $hash = hash('crc32', __CLASS__); $bucketCrdt = sprintf('test_riak_client_%s_crdt_articles_bucket', $hash); $indexCrdt = sprintf('test_riak_client_%s_crdt_articles_index', $hash); $bucketKv = sprintf('test_riak_client_%s_kv_articles_bucket', $hash); $indexKv = sprintf('test_riak_client_%s_kv_articles_index', $hash); $namespaceCrdt = new RiakNamespace('maps', $bucketCrdt); $namespaceKv = new RiakNamespace(null, $bucketKv); $dataCrdt = new ArticlesData($this->client, $namespaceCrdt, $indexCrdt); $dataKv = new ArticlesData($this->client, $namespaceKv, $indexKv); $this->dataKv = $dataKv; $this->dataCrdt = $dataCrdt; $this->indexKv = $indexKv; $this->indexCrdt = $indexCrdt; $this->namespaceKv = $namespaceKv; $this->namespaceCrdt = $namespaceCrdt; $this->dataCrdt->setUp(); $this->dataKv->setUp(); }