Package com.basho.riak.client

Provides the top-level IRiakClient and IRiakObject classes required to store data in Riak, start here.

See:
          Description

Interface Summary
IRiakClient Primary high-level interface for accessing Riak.
IRiakObject Represents the data and meta data stored in Riak at a bucket/key.
 

Class Summary
DefaultRiakClient The default implementation of IRiakClient.
DefaultRiakObject The default implementation of IRiakObject
RiakBucketInfo Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved.
RiakClient Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved.
RiakConfig Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved.
RiakFactory A factory for getting an IRiakClient implementation wrapping the RawClient of your choice.
RiakLink Models a link from one object to another in Riak.
RiakObject Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved.
 

Exception Summary
NoFactoryForConfigException RuntimeException thrown by RiakFactory if it is unable to find a RiakClientFactory to create a client for the given configuration.
RiakException  
RiakRetryFailedException  
 

Package com.basho.riak.client Description

Provides the top-level IRiakClient and IRiakObject classes required to store data in Riak, start here.

Riak is a Dynamo-style, distributed key-value store that can be queried via Map/Reduce. Riak exposes both an HTTP REST interface and a Protocol Buffers interface. This library provides an abstract, high-level, transport agnostic interface to Riak.

In order to use the client you first need an instance of one of the two legacy, transport specific clients http. RiakClient or pbc. RiakClient which is then wrapped as an IRiakClient. RiakFactory provides convenient methods for this:

 IRiakClient client = RiakFactory.pbcClient(yourPBClient);
 
If you are running Riak locally using the default ports simply call
 IRiakClient client = RiakFactory.httpClient()
 
Or
 IRiakClient client = RiakFactory.pbcClient()
 
Configuration of the low-level clients is coming soon to the API.

See Also:
com.basho.riak.client.raw, com.basho.riak.client.query


Copyright © 2012. All Rights Reserved.