hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From unmesha sreeveni <unmeshab...@gmail.com>
Subject Re: CompateTo() in WritableComparable
Date Mon, 04 Nov 2013 10:57:27 GMT
I am trying to emit a matrix(2D double array) as key and another matrix as
value.

ie context.write(new myclass(matrixa),new myclass(matrixb));
 * so how to compare them


On Mon, Nov 4, 2013 at 4:16 PM, unmesha sreeveni <unmeshabiju@gmail.com>wrote:

> Thanks Dieter De Witte
>
>
> On Mon, Nov 4, 2013 at 4:11 PM, Dieter De Witte <drdwitte@gmail.com>wrote:
>
>> A writableComparable is an interface. A key in mapreduce needs to
>> implement it, since the keys need to be compared for equality. So it has
>> nothing to do with key value pairs as such.
>>
>> Regards, Dieter
>>
>>
>> 2013/11/4 unmesha sreeveni <unmeshabiju@gmail.com>
>>
>>>
>>> what is CompateTo() in WritableComparable?
>>> Is that comparing a key and value or comparing key and key,value and
>>> value
>>>
>>> --
>>> *Thanks & Regards*
>>>
>>> Unmesha Sreeveni U.B
>>>
>>> *Junior Developer*
>>>
>>> *Amrita Center For Cyber Security *
>>>
>>>
>>> * Amritapuri.www.amrita.edu/cyber/ <http://www.amrita.edu/cyber/>*
>>>
>>
>>
>
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
>
> *Junior Developer*
>
> *Amrita Center For Cyber Security *
>
>
> * Amritapuri.www.amrita.edu/cyber/ <http://www.amrita.edu/cyber/>*
>



-- 
*Thanks & Regards*

Unmesha Sreeveni U.B

*Junior Developer*

*Amrita Center For Cyber Security*


* Amritapuri.www.amrita.edu/cyber/ <http://www.amrita.edu/cyber/>*

Mime
View raw message