On Wed, Mar 25, 2015 at 4:05 PM, Alexander Shorin <kxe...@gmail.com> wrote:

> Why not to make a view which doesn't emits keys with null values?
>

  I guess my attempt to quickly describe the problem didn't provide enough
detail.

  Coming out of the map, all keys have values.  Then in the reduce there is
logic which, based on the array of values I was given, decides for this key
there isn't work to be done.  So rather than returning anything, it just
falls out of the function (which appears to be equivalent to 'return null'.)

  For most of the hundreds of thousands of keys, the reduce function has
nothing to return -- and I'd like to quickly skip over them and get to the
few keys where I did have something to return.


-- 
System Administration and software developer,
Canadiana.org   http://www.canadiana.ca

Reply via email to