|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.response.HttpResponseDecorator
com.basho.riak.client.response.MapReduceResponse
public class MapReduceResponse
Response from a map-reduce query (POST to /mapred). Decorates an HttpResponse and parses returned JSON array returned from Riak.
| Field Summary |
|---|
| Fields inherited from class com.basho.riak.client.response.HttpResponseDecorator |
|---|
impl |
| Constructor Summary | |
|---|---|
MapReduceResponse(HttpResponse r)
On a 2xx response, parses the response into a JSONArray |
|
| Method Summary | |
|---|---|
JSONArray |
getResults()
The result of the map-reduce query as a JSON array |
| Methods inherited from class com.basho.riak.client.response.HttpResponseDecorator |
|---|
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.basho.riak.client.response.HttpResponse |
|---|
close, getBody, getBodyAsString, getBucket, getHttpHeaders, getHttpMethod, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
| Constructor Detail |
|---|
public MapReduceResponse(HttpResponse r)
throws JSONException
JSONArray
r - The HTTP response query POST'd to the map-reduce resource
JSONException - Response is a 2xx but doesn't contain a valid JSON array| Method Detail |
|---|
public JSONArray getResults()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||