public class MapReduceResponseSource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.basho.riak.pbc.RiakConnection |
conn |
| 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 |
|---|---|
void |
close() |
boolean |
hasNext() |
boolean |
isClosed() |
Iterator<T> |
iterator() |
MapReduceResponse |
next() |
static org.json.JSONArray |
readAllResults(MapReduceResponseSource response)
Buffer the full set of results into a JSONArray
|
protected MapReduceResponseSource(RiakClient client, com.basho.riak.pbc.RiakConnection conn, com.google.protobuf.ByteString contentType) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
IOExceptionpublic MapReduceResponse next() throws IOException
IOExceptionpublic static org.json.JSONArray readAllResults(MapReduceResponseSource response) throws IOException
response - the MapReduceResponseSourceJSONArray with all phases and all results.IOExceptionpublic void close()
public boolean isClosed()
Copyright © 2012. All Rights Reserved.