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
- RiakException
DomainBucket.store(java.lang.Object)
public IRiakObject store(String key, byte[] value) throws RiakException
key
- value
- RiakException
public IRiakObject fetch(String key) throws RiakException
key
- RiakException
DomainBucket.fetch(java.lang.String)
public IRiakObject fetch(IRiakObject o) throws RiakException
o
- RiakException
DomainBucket.fetch(java.lang.Object)
public void delete(IRiakObject o) throws RiakException
o
- RiakException
DomainBucket.delete(java.lang.Object)
public void delete(String key) throws RiakException
key
- RiakException
DomainBucket.delete(java.lang.String)
Copyright © 2013. All Rights Reserved.