Absolutely right, a list would work as well. The array conversion in the
end is only done because WeightedOccurrencesArray inherits the
constructor expecting an array from ArrayWritable.
--sebastian
On 21.11.2010 13:44, Sean Owen wrote:
Yes I believe I see how that works. You could just use a List right,
and also maybe avoid the second copy to an array? I think I thought
the Set had a purpose that it doesn't have here.
On Sun, Nov 21, 2010 at 8:09 AM, Sebastian Schelter <[email protected]
<mailto:[email protected]>> wrote:
WeightedOccurrencesPerColumnReducer now receives:
1 (1,1,2),(2,2,2)
2 (2,4,2)
3 (1,3,2)
Hope that answers your question.