Package com.basho.riak.client.api

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


        uv = new UpdateValue.Builder(loc)
                        .withUpdate(update)
                        .withStoreOption(Option.RETURN_BODY, true)
                        .build();
       
        UpdateValue.Response uvResp = client.execute(uv);
       
        f = uvResp.getValue(Foo.class);
        assertNotNull(f);
        assertEquals("Little bunny", f.fooValue);
       
View Full Code Here


        uv = new UpdateValue.Builder(loc)
                        .withUpdate(update)
                        .withStoreOption(Option.RETURN_BODY, true)
                        .build();
       
        uvResp = client.execute(uv);
       
        f = uvResp.getValue(Foo.class);
        assertNotNull(f);
        assertEquals("Little bunny foo foo.", f.fooValue);
       
View Full Code Here

                                        }
                                    })
                        .withStoreOption(Option.RETURN_BODY, true)
                        .build();
       
        UpdateValue.Response response = client.execute(uv);
        RiakObject ro = response.getValues().get(0);
        assertNotNull(ro.getVClock());
    }
   
    public static class GenericPojo<T>
View Full Code Here

        StoreValue sv =
            new StoreValue.Builder(pojo).withLocation(loc)
                .withOption(Option.RETURN_BODY, true)
                .build();
       
        StoreValue.Response resp = client.execute(sv);
       
        Pojo pojo2 = resp.getValue(Pojo.class);
       
        assertEquals(pojo.value, pojo2.value);
       
View Full Code Here

        assertEquals(pojo.value, pojo2.value);
       
        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

         StoreValue sv =
            new StoreValue.Builder(pojo)
                .withOption(Option.RETURN_BODY, true)
                .build();
       
        StoreValue.Response resp = client.execute(sv);
       
        RiakAnnotatedPojo rap = resp.getValue(RiakAnnotatedPojo.class);
       
        assertNotNull(rap.bucketName);
        assertEquals(pojo.bucketName, rap.bucketName);
View Full Code Here

        StoreValue sv =
            new StoreValue.Builder(pojo)
                .withOption(Option.RETURN_BODY, true)
                .build();
       
        StoreValue.Response resp = client.execute(sv);
       
        RiakAnnotatedPojo rap = resp.getValue(RiakAnnotatedPojo.class);
       
        assertTrue(rap.emailIndx.containsAll(emailAddys));
        assertEquals(rap.userId, pojo.userId);
View Full Code Here

         StoreValue sv =
            new StoreValue.Builder(pojo)
                .withOption(Option.RETURN_BODY, true)
                .build();
       
        StoreValue.Response resp = client.execute(sv);
       
        RiakAnnotatedPojo rap = resp.getValue(RiakAnnotatedPojo.class);
       
        assertNotNull(rap.key);
        assertFalse(rap.key.isEmpty());
View Full Code Here

            locations.add(loc);
            values.add(BinaryValue.create(value));
            RiakObject o = new RiakObject().setValue(BinaryValue.create(value));
           
            StoreValue sv = new StoreValue.Builder(o).withLocation(loc).build();
            client.execute(sv);
        }
       
        MultiFetch mf = new MultiFetch.Builder().addLocations(locations).build();
       
        MultiFetch.Response mfr = client.execute(mf);
View Full Code Here

            client.execute(sv);
        }
       
        MultiFetch mf = new MultiFetch.Builder().addLocations(locations).build();
       
        MultiFetch.Response mfr = client.execute(mf);
       
        assertEquals(locations.size(), mfr.getResponses().size());
       
        List<Location> returnedLocations = new LinkedList<Location>();
        List<BinaryValue> returnedValues = new LinkedList<BinaryValue>();
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.