public class MapReduceResponseSource extends RiakStreamClient<MapReduceResponse>
conn, continuation| Modifier | Constructor and Description |
|---|---|
protected |
MapReduceResponseSource(RiakClient client,
com.basho.riak.pbc.RiakConnection conn,
com.google.protobuf.ByteString contentType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
MapReduceResponse |
next() |
static org.json.JSONArray |
readAllResults(MapReduceResponseSource response)
Buffer the full set of results into a JSONArray
|
cancel, close, getContinuation, hasContinuation, isClosed, iteratorprotected MapReduceResponseSource(RiakClient client, com.basho.riak.pbc.RiakConnection conn, com.google.protobuf.ByteString contentType) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
hasNext in class RiakStreamClient<MapReduceResponse>IOExceptionpublic MapReduceResponse next() throws IOException
next in class RiakStreamClient<MapReduceResponse>IOExceptionpublic static org.json.JSONArray readAllResults(MapReduceResponseSource response) throws IOException
response - the MapReduceResponseSourceJSONArray with all phases and all results.IOExceptionCopyright © 2014. All Rights Reserved.