Package com.basho.riak.client.api.commands.kv

Examples of com.basho.riak.client.api.commands.kv.StoreValue


        ip.key = "index_test_object_key";
        ip.bucketName = bucketName.toString();
        ip.indexKey = 123456L;
        ip.value = "My Object Value!";
       
        StoreValue sv = new StoreValue.Builder(ip).build();
        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
View Full Code Here


        ip.key = "index_test_object_key1";
        ip.bucketName = bucketName.toString();
        ip.indexKey = 1L;
        ip.value = "My Object Value!";
       
        StoreValue sv = new StoreValue.Builder(ip).build();
        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
View Full Code Here

        ip.key = "index_test_object_key";
        ip.bucketName = bucketName.toString();
        ip.indexKey = new BigInteger("91234567890123456789012345678901234567890");
        ip.value = "My Object Value!";
       
        StoreValue sv = new StoreValue.Builder(ip).build();
        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
View Full Code Here

        ip.key = "index_test_object_key1";
        ip.bucketName = bucketName.toString();
        ip.indexKey = new BigInteger("91234567890123456789012345678901234567890");
        ip.value = "My Object Value!";
       
        StoreValue sv = new StoreValue.Builder(ip).build();
        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
View Full Code Here

        ip.key = "index_test_object_key";
        ip.bucketName = bucketName.toString();
        ip.indexKey = indexKey.getValue();
        ip.value = "My Object Value!";
       
        StoreValue sv = new StoreValue.Builder(ip).build();
        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
View Full Code Here

        ip.key = "index_test_object_key";
        ip.bucketName = bucketName.toString();
        ip.indexKey = "index_test_index_key";
        ip.value = "My Object Value!";
       
        StoreValue sv = new StoreValue.Builder(ip).build();
        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
View Full Code Here

        ip.key = "index_test_object_key1";
        ip.bucketName = bucketName.toString();
        ip.indexKey = "index_test_index_key1";
        ip.value = "My Object Value!";
       
        StoreValue sv = new StoreValue.Builder(ip).build();
        RiakFuture<StoreValue.Response, Location> svFuture = client.executeAsync(sv);
       
        svFuture.await();
        assertTrue(svFuture.isSuccess());
       
View Full Code Here

            Namespace ns = new Namespace(bucketType, bucketName.toString());
            Location loc = new Location(ns, "test_fetch_key1");
           
            Pojo pojo = new Pojo();
            pojo.value = "test value";
            StoreValue sv =
                new StoreValue.Builder(pojo).withLocation(loc).build();
           
            StoreValue.Response resp = client.execute(sv);
           
           
View Full Code Here

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

        Namespace ns = new Namespace(bucketType, bucketName.toString());
        Location loc = new Location(ns, "test_fetch_key4");
       
        Pojo pojo = new Pojo();
        pojo.value = "test value";
        StoreValue sv =
            new StoreValue.Builder(pojo).withLocation(loc).build();
       
        client.execute(sv);
       
        pojo.value = "Pick me!";
View Full Code Here

TOP

Related Classes of com.basho.riak.client.api.commands.kv.StoreValue

Copyright © 2018 www.massapicom. 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.