Is it possible to call an external function from a view's map or reduce function?
I'm currently evaluating Couchbase's map/reduce views for managing aggregate reports over large volumes of data. When creating the map/reduce view, my reduce function will need to call an aggregate function that is proprietary technology, and that function is only implemented in C and Java. Is there a mechanism for making external functions like that available to the map/reduce processor?
Thanks!
I'll second the request. This would allow you to do all kinds of things with the map/reduce functionality. For example, you'd be able to parse non-json data, such as msgpack or protobuf. Couchbase wouldn't need to implement these, you'd just call out to the right library.
I'd like to have the possibly to write c map / reduce code directly - is this possible with current couch 2.0? (In order to provide for some extremely optimized (fast) map / reduce functions).
Cheers,
Mario
My use case is that I have a proprietary aggregate function that I would like to use as a reduce function. It's treated as a trade secret, so the only way I'd be able to get it into the Couchbase runtime would be if there were some way to hook in an external function.
For this particular project, Couchbase seems like it would be a good fit. I want to run a daily Map/Reduce job to create a query-able dataset, and Couchbase would be able to take care of both those requirements...if only I could use my function. Would definitely love to see that sort of functionality in a future release.
Thanks!
Hello,
It is not possible in the 2.0 release, and this is the first time I hear about this requirement.
Can you give us more information about the type of function/treatment you would like to do?
Regards
Tug
@tgrall