Anonymous avatar Anonymous committed 1e8e9e4

update doc/basic-mapreduce.txt for binary buckets & keys plus rebarized-riak

Comments (0)

Files changed (1)

doc/basic-mapreduce.txt

                           dict:new(),
                           Gcounts)]
            end.
-3> {ok, [R]} = Client:mapred([{groceries, "mine"},{groceries, "yours"}],
+3> {ok, [R]} = Client:mapred([{<<"groceries">>, <<"mine">>},
+                              {<<"groceries">>, <<"yours">>}],
                              [{map, {qfun, Count}, none, false},
                               {reduce, {qfun, Merge}, none, true}]).
 4> L = dict:to_list(R).
   with Erlang, but for any of your custom code, you'll need to make
   sure it's loadable.
 
-  The easiest way to get your custom modules in the code path of a
-  Riak node is to symlink your application from riak's "deps"
-  directory.  The node start script (start-fresh.sh, start-join.sh,
-  etc.) automatically adds deps/*/ebin to the code path.
-
 - If you use the {modfun, Module, Function} form of the FunTerm in the
   map/reduce step definition, you'll need to force the Riak nodes to
   reload the Module if you make a change to it.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.