|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.query.MapReduce
com.basho.riak.client.query.BucketKeyMapReduce
public class BucketKeyMapReduce
Map/Reduce over a set of bucket/key/keydata inputs.
IRiakClient.mapReduce()| Constructor Summary | |
|---|---|
BucketKeyMapReduce(RawClient client)
The RawClient to execute the Map/Reduce query
Use IRiakClient.mapReduce() as a factory to create your map/reduce operation. |
|
| Method Summary | |
|---|---|
BucketKeyMapReduce |
addInput(String bucket,
String key)
Add a bucket, key input to the query |
BucketKeyMapReduce |
addInput(String bucket,
String key,
String keyData)
Add a bucket, key, keydata to the list of inputs for the m/r query |
Iterator<String[]> |
iterator()
An UnmodifiableIterator view of the inputs for this Map/Reduce job. |
protected void |
validate()
Check that this map/reduce job is valid |
protected void |
writeInput(org.codehaus.jackson.JsonGenerator jsonGenerator)
Override to write the input specification of the M/R job. |
| Methods inherited from class com.basho.riak.client.query.MapReduce |
|---|
addLinkPhase, addLinkPhase, addMapPhase, addMapPhase, addMapPhase, addMapPhase, addReducePhase, addReducePhase, addReducePhase, addReducePhase, execute, timeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BucketKeyMapReduce(RawClient client)
RawClient to execute the Map/Reduce query
Use IRiakClient.mapReduce() as a factory to create your map/reduce operation.
client - | Method Detail |
|---|
public BucketKeyMapReduce addInput(String bucket,
String key,
String keyData)
bucket - key - keyData -
public BucketKeyMapReduce addInput(String bucket,
String key)
bucket - key -
public Iterator<String[]> iterator()
UnmodifiableIterator view of the inputs for this Map/Reduce job.
iterator in interface Iterable<String[]>
protected void writeInput(org.codehaus.jackson.JsonGenerator jsonGenerator)
throws IOException
MapReduce
writeInput in class MapReducejsonGenerator - a Jackson JsonGenerator to write the input spec to
IOExceptionprotected void validate()
MapReduce
validate in class MapReduce
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||