Last active
August 29, 2015 14:08
-
-
Save seancribbs/840828b715d26b0e865a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(crdt_mapred). | |
-compile(export_all). | |
%% @doc Map phase function for returning CRDT set values as lists of lists | |
map_set_value(RiakObject, _, _) -> | |
[riak_kv_crdt:set_value(RiakObject)]. | |
%% @doc Map phase function for returning CRDT set values wrapped in JSON-like objects | |
map_set_value_json(RiakObject, _, _) -> | |
[{struct, [{set, riak_kv_crdt:set_value(RiakObject)}]}]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment