Package | Description |
---|---|
com.basho.riak.client.http |
The legacy, low-level HTTP REST RiakClient and associated classes, consider using the high-level
IRiakClient |
com.basho.riak.client.http.plain |
A more OO wrapper to the legacy, low-level HTTP REST client map reduce key filters, consider using the high-level
IRiakClient |
com.basho.riak.client.http.request |
Riak request classes for the legacy HTTP REST client, consider using the high-level
IRiakClient |
com.basho.riak.client.http.response |
HTTP response handling/wrapping classes for the legacy HTTP REST client, consider using the high-level
IRiakClient |
com.basho.riak.client.http.util |
Supporting utility classes for the legacy HTTP REST client, consider using the high-level
IRiakClient |
Modifier and Type | Method and Description |
---|---|
RiakObject |
RiakObject.addIndex(String name,
long value)
Add an int index to this object
|
RiakObject |
RiakObject.addIndex(String name,
String value)
Add a binary index to the object
|
RiakObject |
RiakObject.addLink(RiakLink link) |
RiakObject |
RiakObject.addUsermetaItem(String key,
String value) |
RiakObject |
RiakObject.removeLink(RiakLink link) |
RiakObject |
RiakObject.setRiakClient(RiakClient client) |
Modifier and Type | Method and Description |
---|---|
void |
RiakObject.copyData(RiakObject object) |
StoreResponse |
RiakClient.store(RiakObject object) |
StoreResponse |
RiakClient.store(RiakObject object,
RequestMeta meta) |
Modifier and Type | Method and Description |
---|---|
RiakObject |
PlainClient.fetch(String bucket,
String key) |
RiakObject |
PlainClient.fetch(String bucket,
String key,
RequestMeta meta)
Like
RiakClient.fetch(String, String, RequestMeta) , except it
returns the fetched object directly or throws if the response is not a
200, 304 or 404. |
RiakObject |
PlainClient.fetchMeta(String bucket,
String key) |
RiakObject |
PlainClient.fetchMeta(String bucket,
String key,
RequestMeta meta)
Like
RiakClient.fetchMeta(String, String, RequestMeta) , except it
returns the fetched object metadata directly or throws if the response is
not a 200, 304 or 404. |
Modifier and Type | Method and Description |
---|---|
Collection<? extends RiakObject> |
PlainClient.fetchAll(String bucket,
String key) |
Collection<? extends RiakObject> |
PlainClient.fetchAll(String bucket,
String key,
RequestMeta meta)
Like
RiakClient.fetch(String, String, RequestMeta) , except it
returns the all the fetched objects directly or throws if the response is
not a 200, 304 or 404. |
List<? extends List<? extends RiakObject>> |
PlainClient.walk(String bucket,
String key,
RiakWalkSpec walkSpec) |
List<? extends List<? extends RiakObject>> |
PlainClient.walk(String bucket,
String key,
String walkSpec) |
List<? extends List<? extends RiakObject>> |
PlainClient.walk(String bucket,
String key,
String walkSpec,
RequestMeta meta)
Like
RiakClient.walk(String, String, String, RequestMeta) , except
throws on a non-200 or 404 response. |
Modifier and Type | Method and Description |
---|---|
void |
PlainClient.store(RiakObject object) |
void |
PlainClient.store(RiakObject object,
RequestMeta meta)
Like
RiakClient.store(RiakObject, RequestMeta) , except throws on
a non-200 or 204 response and updates the passed in RiakObject
with new metadata from Riak. |
Modifier and Type | Method and Description |
---|---|
MapReduceBuilder |
MapReduceBuilder.setRiakObjects(Collection<RiakObject> objects) |
Modifier and Type | Method and Description |
---|---|
RiakObject |
WithBodyResponse.getObject() |
RiakObject |
StoreResponse.getObject() |
RiakObject |
FetchResponse.getObject()
Returns the first Riak object contained in the response.
|
Modifier and Type | Method and Description |
---|---|
Collection<RiakObject> |
WithBodyResponse.getSiblings() |
Collection<RiakObject> |
StoreResponse.getSiblings() |
Collection<RiakObject> |
FetchResponse.getSiblings()
Returns a collection of the Riak objects contained in the response.
|
List<? extends List<RiakObject>> |
WalkResponse.getSteps()
Steps accumulated from link walking.
|
Modifier and Type | Method and Description |
---|---|
void |
FetchResponse.setObject(RiakObject object) |
Modifier and Type | Method and Description |
---|---|
static List<RiakObject> |
ClientUtils.parseMultipart(RiakClient riak,
String bucket,
String key,
Map<String,String> docHeaders,
byte[] docBody)
Convert a multipart/mixed document to a list of
RiakObject s. |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
ClientHelper.store(RiakObject object,
RequestMeta meta)
Same as
RiakClient , except only returning the HTTP response |
Copyright © 2014. All Rights Reserved.