> Hi,
>
> My req is to find max value of revenue per customer so I am using below
> query. I got this solution from one of tutorial in google but not able to
> understand how it returns max in this scenario. can anyone hep
>
> revenuePerDayPerCustomerMap.reduceByKey((x, y) => (if(x._2 >=
Sent from my iPhone
> On Feb 6, 2016, at 4:41 PM, KhajaAsmath Mohammed
> wrote:
>
> Hi,
>
> My req is to find max value of revenue per customer so I am using below
> query. I got this solution from one of tutorial in google but not able to
> understand how it