driver for mapreduce query. Map phases are expected to have inputs of the form [{Bucket,Key}] or [{{Bucket,Key},KeyData}] (the first form is equivalent to [{{Bucket,Key},undefined}]) and will execute with locality to each key and must return a list that is valid input to the next phase
Reduce phases take any list, but the function must be commutative and associative, and the next phase will block until the reduce phase is entirely done, and the reduce fun must return a list that is valid input to the next phase
Valid terms for Query:mapred_funterm() = {modfun, Module::atom(), Function::atom()} | {qfun, function()}
mapred_queryterm() = {map, mapred_funterm(), Arg::term(), Accumulate::boolean()} | {reduce, mapred_funterm(), Arg::term(), Accumulate::boolean()} | {link, Bucket::riak_object:bucket(), Tag::term(), Accumulate::boolean()}
mapred_result() = [term()]
| start/5 |
start(Node, Client, ReqId, Query0, Timeout) -> any()
Generated by EDoc, Mar 10 2010, 09:21:17.