{@code Namespace ns = new Namespace("my_type", "my_bucket"); StoreBucketProperties sbp = new StoreBucketProperties.Builder(ns) .withAllowMulti(true) .build(); client.execute(sbp);}
575859606162636465
public void changeBucketProps() throws ExecutionException, InterruptedException { if (testBucketType) { Namespace ns = new Namespace(bucketType.toString(), mrBucketName); StoreBucketProperties op = new StoreBucketProperties.Builder(ns).withAllowMulti(false).build(); client.execute(op); } }
5960616263646566676869
client.execute(ssi); assertTrue("Index not created", assureIndexExists("test_mr_index")); Namespace ns = new Namespace(bucketType.toString(), mrBucketName); StoreBucketProperties sbp = new StoreBucketProperties.Builder(ns) .withSearchIndex(index.getName()) .build(); client.execute(sbp); RiakObject ro = new RiakObject()
495051525354555657
555657585960616263
public void changeBucketProps() throws ExecutionException, InterruptedException { if (testBucketType) { Namespace ns = new Namespace(bucketType.toString(), mrBucket); StoreBucketProperties op = new StoreBucketProperties.Builder(ns).withAllowMulti(false).build(); client.execute(op); } }