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
IOException
public boolean hasNext() throws IOException
IOException
public MapReduceResponse next() throws IOException
IOException
public static org.json.JSONArray readAllResults(MapReduceResponseSource response) throws IOException
response
- the MapReduceResponseSource
JSONArray
with all phases and all results.IOException
public void close()
public boolean isClosed()
Copyright © 2012. All Rights Reserved.