Package com.basho.riak.pbc

Examples of com.basho.riak.pbc.RiakObject


        final String key = (String) parameters[0];
        final byte[] dataBytes = (byte[]) parameters[1];
        final ByteString keyBS = ByteString.copyFromUtf8 (key);
        final ByteString bucketBS = ByteString.copyFromUtf8 (RiakPBOperationFactory.this.bucket);
        final ByteString dataBS = ByteString.copyFrom (dataBytes);
        final RiakObject riakobj = new RiakObject (bucketBS, keyBS, dataBS);
        // FIXME: use the vector clock...
        RiakPBOperationFactory.this.riakcl.store (riakobj);
        return true;
      }
    });
View Full Code Here

TOP

Related Classes of com.basho.riak.pbc.RiakObject

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.