Monday, February 6, 2012

Reuse values in reducer

Inside reduce(key, Iterable<Type> value, context), the value.iterator() is a single reference.
So to reuse values, add them to a list structure for example

Credit goes to CornerCases

No comments:

Post a Comment