Sure, any iterative process is implementable in terms of reduce so the mapping itself is a reduction, and each counting instance in the mapping is a reduction as well (unless you map on books rather than shelves, though that can be described as a reduction on a single-item set).
Re:How I explained MapReduce to my Wife?
by rogerbraun on Friday August 05, 2011 @08:53AM
(#2849889)
I think so, too, but it does not matter. The function you use on the elements in your list when doing a map can be anything, so it may even be something like counting up.
Re:How I explained MapReduce to my Wife?
by yummyfajitas on Friday August 05, 2011 @11:04AM
(#2850305)
In my analogy, I was assuming a shelf is a single record.
Isn't that a reduce too, though?