Hello,

On Sun, Apr 10, 2011 at 8:59 PM, Afflictedd2 <[email protected]> wrote:
> For example, if I have the following pairs:
>
> {"f2B"=>4,
>  "f1A"=>3,
>  "f2C"=>5,
>  "f1B"=>4,
>  "f2D"=>7,
>  "f1C"=>5,
>  "f2E"=>8,
>  "f1D"=>7,
>  "f1F"=>8,
>  "f2A"=>3}
>
> I want the following pairs out
>
> {"B"=>4,
>  "A"=>3,
>  "C"=>5,
>  "B"=>4,
>  "D"=>7,
>  "C"=>5,
>  "E"=>8,
>  "D"=>7,
>  "F"=>8,
>  "A"=>3}
>
> but I don't want E and F in my final result of reduced pairs
>
> {"B"=>8,
>  "A"=>6,
>  "C"=>10,
>  "D"=>14,
> }
> --

You will need to do this in your reducer..

-- 
Harsh J

Reply via email to