|
||||||||||
| 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.BucketMapReduce
public class BucketMapReduce
Map/Reduce over a bucket, optionally add Key Filters to narrow the inputs.
IRiakClient.mapReduce(String)| Constructor Summary | |
|---|---|
BucketMapReduce(RawClient client,
String bucket)
Create a Map Reduce job over the specified bucket to be executed by the specified RawClient. |
|
| Method Summary | |
|---|---|
BucketMapReduce |
addKeyFilter(KeyFilter keyFilter)
Add a KeyFilter to the inputs for the Map/Reduce job |
BucketMapReduce |
addKeyFilters(KeyFilter... keyFilters)
Add one or some KeyFilters to this map/reduce operations inputs |
String |
getBucket()
Get the bucket input for the M/R job |
Iterator<KeyFilter> |
iterator()
Unmodifiable copy iterator view of the list of KeyFilters for
this M/R operation. |
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, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BucketMapReduce(RawClient client,
String bucket)
bucket to be executed by the specified RawClient.
Use IRiakClient.mapReduce(String) to create your BucketMapReduce
client - the RawClient to usebucket - the input to the M/R job| Method Detail |
|---|
public String getBucket()
public Iterator<KeyFilter> iterator()
KeyFilters for
this M/R operation. Does not read or write through to internal
BucketInput state.
iterator in interface Iterable<KeyFilter>public BucketMapReduce addKeyFilters(KeyFilter... keyFilters)
KeyFilters to this map/reduce operations inputs
keyFilters - var arg of KeyFilters
public BucketMapReduce addKeyFilter(KeyFilter keyFilter)
KeyFilter to the inputs for the Map/Reduce job
keyFilter - the KeyFilter to add
protected void writeInput(org.codehaus.jackson.JsonGenerator jsonGenerator)
throws IOException
MapReduce
writeInput in class MapReducejsonGenerator - a Jackson JsonGenerator to write the input spec to
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||