Hi,

You will want to make sure your key JavaObject implements equals() and
hashCode() appropriately. Otherwise you may not get the groupings you expect

Peter Bollerman
Principal Software Engineer
The Allant Group, Inc.
630-718-3830

On Thu, Sep 24, 2015 at 5:27 AM, Sabarish Sasidharan <
sabarish.sasidha...@manthan.com> wrote:

> By java class objects if you mean your custom Java objects, yes of course.
> That will work.
>
> Regards
> Sab
> On 24-Sep-2015 3:36 pm, "Ramkumar V" <ramkumar.c...@gmail.com> wrote:
>
>> Hi,
>>
>> I want to know whether grouping by java class objects is possible or not
>> in java Spark.
>>
>> I have Tuple2< JavaObject, JavaObject>. i want to groupbyKey and then
>> i'll do some operations in values after grouping.
>>
>>
>> *Thanks*,
>> <https://in.linkedin.com/in/ramkumarcs31>
>>
>>

Reply via email to