Package | Description |
---|---|
com.basho.riak.client |
Provides the top-level
IRiakClient
and IRiakObject classes required to store data
in Riak, start here. |
com.basho.riak.client.bucket |
A bucket is a namespace abstraction provided by Riak, the API uses
Bucket as the primary way to interact
with data stored in Riak. |
com.basho.riak.client.builders |
These builders provide a fluid API for creating instances of some immutable
(or mainly immutable classes) that have a large number of
constructor parameters.
|
com.basho.riak.client.convert |
Classes for converting Riak data into domain specific classes and back.
|
com.basho.riak.client.query |
Classes and interfaces for running map/reduce and link walk operations on
Riak.
|
com.basho.riak.client.raw |
The raw interfaces/classes exist to provide unified access to any underlying transport clients for Riak
|
com.basho.riak.client.raw.http |
Classes for adapting the http.
RiakClient to the
RawClient interface |
com.basho.riak.client.raw.pbc |
Classes for adapting the pbc.
RiakClient to the
RawClient interface |
Modifier and Type | Class and Description |
---|---|
class |
DefaultRiakObject
The default implementation of
IRiakObject |
Modifier and Type | Method and Description |
---|---|
IRiakObject |
IRiakObject.addIndex(String index,
long value)
Add an int index to this objects indexes.
|
IRiakObject |
DefaultRiakObject.addIndex(String index,
long value) |
IRiakObject |
IRiakObject.addIndex(String index,
String value)
Add a String index to this objects indexes.
|
IRiakObject |
DefaultRiakObject.addIndex(String index,
String value) |
IRiakObject |
IRiakObject.addLink(RiakLink link)
Add link to this RiakObject's links.
|
IRiakObject |
DefaultRiakObject.addLink(RiakLink link) |
IRiakObject |
IRiakObject.addUsermeta(String key,
String value)
Adds the key, value to the collection of user meta data for this object.
|
IRiakObject |
DefaultRiakObject.addUsermeta(String key,
String value) |
IRiakObject |
IRiakObject.removeBinIndex(String index)
Remove a
BinIndex from this RiakObject. |
IRiakObject |
DefaultRiakObject.removeBinIndex(String index) |
IRiakObject |
IRiakObject.removeIntIndex(String index)
Remove a
IntIndex from this RiakObject. |
IRiakObject |
DefaultRiakObject.removeIntIndex(String index) |
IRiakObject |
IRiakObject.removeLink(RiakLink link)
Remove a
RiakLink from this RiakObject. |
IRiakObject |
DefaultRiakObject.removeLink(RiakLink link) |
IRiakObject |
IRiakObject.removeUsermeta(String key)
Remove that item of user meta data.
|
IRiakObject |
DefaultRiakObject.removeUsermeta(String key) |
Modifier and Type | Method and Description |
---|---|
LinkWalk |
IRiakClient.walk(IRiakObject startObject)
Create a
LinkWalk operation that starts at startObject. |
LinkWalk |
DefaultRiakClient.walk(IRiakObject startObject) |
Modifier and Type | Method and Description |
---|---|
IRiakObject |
RiakBucket.fetch(IRiakObject o) |
IRiakObject |
RiakBucket.fetch(String key) |
IRiakObject |
RiakBucket.store(IRiakObject o) |
IRiakObject |
RiakBucket.store(String key,
byte[] value)
Convenience for storing a String in Riak.
|
Modifier and Type | Method and Description |
---|---|
FetchObject<IRiakObject> |
DefaultBucket.fetch(String key)
|
FetchObject<IRiakObject> |
Bucket.fetch(String key)
|
MultiFetchObject<IRiakObject> |
DefaultBucket.multiFetch(String[] keys)
(non-Javadoc)
|
MultiFetchObject<IRiakObject> |
Bucket.multiFetch(String[] keys)
Creates a
MultiFetchObject that returns the datum at keys
as a list of IRiakObject futures on execute() . |
StoreObject<IRiakObject> |
DefaultBucket.store(String key,
byte[] value)
Convenience method to create a RiakObject with a payload of
application/octect-stream
|
StoreObject<IRiakObject> |
Bucket.store(String key,
byte[] value)
Creates a
StoreObject that will store a new IRiakObject . |
StoreObject<IRiakObject> |
DefaultBucket.store(String key,
String value)
Convenience methods will create an
IRiakObject with
value as the data payload and
text/plain:charset=utf-8 as the contentType |
StoreObject<IRiakObject> |
Bucket.store(String key,
String value)
Creates a
StoreObject that will store a new IRiakObject . |
Modifier and Type | Method and Description |
---|---|
void |
RiakBucket.delete(IRiakObject o) |
IRiakObject |
RiakBucket.fetch(IRiakObject o) |
IRiakObject |
RiakBucket.store(IRiakObject o) |
Modifier and Type | Method and Description |
---|---|
IRiakObject |
RiakObjectBuilder.build()
Construct a
DefaultRiakObject from this builders parameters |
Modifier and Type | Method and Description |
---|---|
static RiakObjectBuilder |
RiakObjectBuilder.from(IRiakObject o)
Creates a builder prepopulated from the give
IRiakObject . |
Modifier and Type | Method and Description |
---|---|
IRiakObject |
PassThroughConverter.fromDomain(IRiakObject domainObject,
VClock vclock) |
IRiakObject |
JSONConverter.fromDomain(T domainObject,
VClock vclock)
Converts
domainObject to a JSON string and sets that as the
payload of a IRiakObject . |
IRiakObject |
Converter.fromDomain(T domainObject,
VClock vclock)
Convert from domain specific type to RiakObject
|
IRiakObject |
PassThroughConverter.toDomain(IRiakObject riakObject) |
Modifier and Type | Method and Description |
---|---|
IRiakObject |
PassThroughConverter.fromDomain(IRiakObject domainObject,
VClock vclock) |
IRiakObject |
PassThroughConverter.toDomain(IRiakObject riakObject) |
T |
JSONConverter.toDomain(IRiakObject riakObject)
Converts the
value of riakObject to an instance
of T . |
T |
Converter.toDomain(IRiakObject riakObject)
Convert from a riakObject to a domain specific instance
|
Constructor and Description |
---|
LinkWalk(RawClient client,
IRiakObject startObject)
Create a Link Walk operation that will be executed with
client , starting from startObject |
Modifier and Type | Method and Description |
---|---|
IRiakObject[] |
RiakResponse.getRiakObjects()
Gets the actual array of
IRiakObject (not a clone or copy, so treat it well) |
Modifier and Type | Method and Description |
---|---|
Iterator<IRiakObject> |
RiakResponse.iterator()
Unmodifiable iterator view of the values returned from Riak.
|
Modifier and Type | Method and Description |
---|---|
void |
RawClient.store(IRiakObject object)
Store the given
IRiakObject in Riak using the bucket default w/dw
and false for returnBody |
void |
ClusterClient.store(IRiakObject object) |
RiakResponse |
RawClient.store(IRiakObject object,
StoreMeta storeMeta)
Store the given
IRiakObject in Riak at the location
bucket/key |
RiakResponse |
ClusterClient.store(IRiakObject object,
StoreMeta storeMeta) |
Constructor and Description |
---|
RiakResponse(byte[] vclock,
IRiakObject[] riakObjects)
Create a response from the given vector clock and array.
|
Modifier and Type | Method and Description |
---|---|
void |
HTTPClientAdapter.store(IRiakObject object) |
RiakResponse |
HTTPClientAdapter.store(IRiakObject object,
StoreMeta storeMeta) |
Modifier and Type | Method and Description |
---|---|
void |
PBClientAdapter.store(IRiakObject object) |
RiakResponse |
PBClientAdapter.store(IRiakObject riakObject,
StoreMeta storeMeta) |
Copyright © 2014. All Rights Reserved.