Package com.basho.riak.client.api

Examples of com.basho.riak.client.api.RiakClient.execute()


        Pojo pojo = new Pojo();
        pojo.value = "test value";
        StoreValue sv =
            new StoreValue.Builder(pojo).withLocation(loc).build();
       
        client.execute(sv);
       
        resetAndEmptyBucket(bucketName);
       
        client.execute(sv);
       
View Full Code Here


       
        client.execute(sv);
       
        resetAndEmptyBucket(bucketName);
       
        client.execute(sv);
       
        FetchValue fv = new FetchValue.Builder(loc)
                            .withOption(Option.DELETED_VCLOCK, false)
                            .build();
       
View Full Code Here

       
        FetchValue fv = new FetchValue.Builder(loc)
                            .withOption(Option.DELETED_VCLOCK, false)
                            .build();
       
        FetchValue.Response fResp = client.execute(fv);
       
        assertEquals(2, fResp.getValues(RiakObject.class).size());
       
    }
   
View Full Code Here

        Pojo pojo = new Pojo();
        pojo.value = "test value";
        StoreValue sv =
            new StoreValue.Builder(pojo).withLocation(loc).build();
       
        client.execute(sv);
       
        pojo.value = "Pick me!";
       
        sv = new StoreValue.Builder(pojo).withLocation(loc).build();
       
View Full Code Here

       
        pojo.value = "Pick me!";
       
        sv = new StoreValue.Builder(pojo).withLocation(loc).build();
       
        client.execute(sv);
       
        ConflictResolverFactory.getInstance()
            .registerConflictResolver(Pojo.class, new MyResolver());
       
        FetchValue fv = new FetchValue.Builder(loc).build();
View Full Code Here

        ConflictResolverFactory.getInstance()
            .registerConflictResolver(Pojo.class, new MyResolver());
       
        FetchValue fv = new FetchValue.Builder(loc).build();
       
        FetchValue.Response fResp = client.execute(fv);
        
        assertEquals(pojo.value, fResp.getValue(Pojo.class).value);

       
    }
View Full Code Here

        RiakObject ro = new RiakObject()
                        .setValue(BinaryValue.create(jsonValue))
                        .setContentType("application/json");
       
        StoreValue sv = new StoreValue.Builder(ro).withLocation(loc).build();
        client.execute(sv);
       
        FetchValue fv = new FetchValue.Builder(loc).build();
        FetchValue.Response resp = client.execute(fv);
       
        RiakAnnotatedPojo rap = resp.getValue(RiakAnnotatedPojo.class);
View Full Code Here

       
        StoreValue sv = new StoreValue.Builder(ro).withLocation(loc).build();
        client.execute(sv);
       
        FetchValue fv = new FetchValue.Builder(loc).build();
        FetchValue.Response resp = client.execute(fv);
       
        RiakAnnotatedPojo rap = resp.getValue(RiakAnnotatedPojo.class);
       
        assertNotNull(rap.bucketName);
        assertEquals(ns.getBucketNameAsString(), rap.bucketName);
View Full Code Here

       
        ro.getIndexes().getIndex(StringBinIndex.named("email")).add("roach@basho.com");
        ro.getIndexes().getIndex(LongIntIndex.named("user_id")).add(1L);
       
        StoreValue sv = new StoreValue.Builder(ro).withLocation(loc).build();
        client.execute(sv);
       
        FetchValue fv = new FetchValue.Builder(loc).build();
        FetchValue.Response resp = client.execute(fv);
       
        RiakAnnotatedPojo rap = resp.getValue(RiakAnnotatedPojo.class);
View Full Code Here

       
        StoreValue sv = new StoreValue.Builder(ro).withLocation(loc).build();
        client.execute(sv);
       
        FetchValue fv = new FetchValue.Builder(loc).build();
        FetchValue.Response resp = client.execute(fv);
       
        RiakAnnotatedPojo rap = resp.getValue(RiakAnnotatedPojo.class);
       
        assertNotNull(rap.emailIndx);
        assertTrue(rap.emailIndx.contains("roach@basho.com"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.