public class RiakBucket extends Object
DomainBucket strongly typed for IRiakObject.
A convenience class stroring , retrieving IRiakObject from Riak
without specifying a pass through Converter for each operation.
Retrier and ConflictResolver.| Modifier and Type | Method and Description |
|---|---|
void |
delete(IRiakObject o) |
void |
delete(String key) |
IRiakObject |
fetch(IRiakObject o) |
IRiakObject |
fetch(String key) |
static RiakBucket |
newRiakBucket(Bucket b) |
IRiakObject |
store(IRiakObject o) |
IRiakObject |
store(String key,
byte[] value)
Convenience for storing a String in Riak.
|
public static RiakBucket newRiakBucket(Bucket b)
public IRiakObject store(IRiakObject o) throws RiakException
o - RiakExceptionDomainBucket.store(java.lang.Object)public IRiakObject store(String key, byte[] value) throws RiakException
key - value - RiakExceptionpublic IRiakObject fetch(String key) throws RiakException
key - RiakExceptionDomainBucket.fetch(java.lang.String)public IRiakObject fetch(IRiakObject o) throws RiakException
o - RiakExceptionDomainBucket.fetch(java.lang.Object)public void delete(IRiakObject o) throws RiakException
o - RiakExceptionDomainBucket.delete(java.lang.Object)public void delete(String key) throws RiakException
key - RiakExceptionDomainBucket.delete(java.lang.String)Copyright © 2014. All Rights Reserved.