com.basho.riak.client.response
Class MapReduceResponse
java.lang.Object
com.basho.riak.client.response.HttpResponseDecorator
com.basho.riak.client.response.MapReduceResponse
- All Implemented Interfaces:
- HttpResponse
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. Please use
com.basho.riak.client.http.response.MapReduceResponse
instead.
WARNING: This class will be REMOVED in the next version.
@Deprecated
public class MapReduceResponse
- extends HttpResponseDecorator
- implements HttpResponse
Response from a map-reduce query (POST to /mapred). Decorates an HttpResponse
and parses returned JSON array returned from Riak.
- See Also:
MapReduceResponse
Method Summary |
JSONArray |
getResults()
Deprecated. 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, getHttpResponse, 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, getHttpResponse, getKey, getStatusCode, getStream, isError, isStreamed, isSuccess |
MapReduceResponse
public MapReduceResponse(HttpResponse r)
throws JSONException
- Deprecated.
- On a 2xx response, parses the response into a
JSONArray
- Parameters:
r
- The HTTP response query POST'd to the map-reduce resource
- Throws:
JSONException
- Response is a 2xx but doesn't contain a valid JSON array
getResults
public JSONArray getResults()
- Deprecated.
- The result of the map-reduce query as a JSON array
Copyright © 2012. All Rights Reserved.