Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6920D10731 for ; Mon, 4 Nov 2013 10:58:03 +0000 (UTC) Received: (qmail 92000 invoked by uid 500); 4 Nov 2013 10:57:56 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 91626 invoked by uid 500); 4 Nov 2013 10:57:55 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 91619 invoked by uid 99); 4 Nov 2013 10:57:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 10:57:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of unmeshabiju@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Nov 2013 10:57:49 +0000 Received: by mail-vc0-f176.google.com with SMTP id ia6so4428138vcb.21 for ; Mon, 04 Nov 2013 02:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XxXShLmqAHJ0rDpI+iJXPettNxTKAGjEutm9bWDCsbo=; b=RY/Y+Mr2X5fyyfGfGYgPKl3p75S//W9FOTGPLqb5dp0hPEY91buu4FOwCjCAhwmEtq W3u+fpNYm6hdO8pMnpUfkCRiY4kpdYUVeLYBPTbc6oqvuW19gGk4/zWHAYqSzurPCTEV JibElEfcqB+H22mmvPRnZehWX+/tnDYTLxAZZIrMnQgZiiyelkNMleuF6NiTVzOEOiux +25UIwY7/CRJ3sr7752s4O8XE+/aZemA0pc6OYW1jI8yPS4JuyQmanpYFI3ge8o0UG34 O1jOxeM09/cz18h4ycRoH/oikyV37pt3LZJjOzvJ3/HpY+MYeiN9MLAfFcy5GXol3ByZ nNhQ== MIME-Version: 1.0 X-Received: by 10.220.196.66 with SMTP id ef2mr11220318vcb.7.1383562647874; Mon, 04 Nov 2013 02:57:27 -0800 (PST) Received: by 10.59.8.2 with HTTP; Mon, 4 Nov 2013 02:57:27 -0800 (PST) In-Reply-To: References: Date: Mon, 4 Nov 2013 16:27:27 +0530 Message-ID: Subject: Re: CompateTo() in WritableComparable From: unmesha sreeveni To: User Hadoop Content-Type: multipart/alternative; boundary=001a1132e6e226b36a04ea57c8cd X-Virus-Checked: Checked by ClamAV on apache.org --001a1132e6e226b36a04ea57c8cd Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > Thanks Dieter De Witte > > > On Mon, Nov 4, 2013 at 4:11 PM, Dieter De Witte 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 >> >>> >>> 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/ * >>> >> >> > > > -- > *Thanks & Regards* > > Unmesha Sreeveni U.B > > *Junior Developer* > > *Amrita Center For Cyber Security * > > > * Amritapuri.www.amrita.edu/cyber/ * > -- *Thanks & Regards* Unmesha Sreeveni U.B *Junior Developer* *Amrita Center For Cyber Security* * Amritapuri.www.amrita.edu/cyber/ * --001a1132e6e226b36a04ea57c8cd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
= I am trying to emit a matrix(2D double a= rray) as key and another matrix as value.=A0

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


O= n Mon, Nov 4, 2013 at 4:16 PM, unmesha sreeveni <unmeshabiju@gmail.com= > wrote:
Thanks=A0Di= eter De Witte=A0


On Mon, Nov 4, 2013 at 4:11 PM, Dieter D= e Witte <drdwitte@gmail.com> wrote:
A writableComparable is an interface. A key in mapred= uce 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.

Regard= s, Dieter


2013/11/4 unmesha sreeveni <unmeshabiju@gmail.com>

what is CompateTo() in WritableComparab= le?
Is th= at 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




--
=
Thanks & Regards

Unmesha Sreeveni U.B
Junior Developer
Amrita Center For Cyber Security



--
=
Thanks & Regards

Unmesha Sreeveni U.B
Junior Developer
Amrita Center For Cyber Security
--001a1132e6e226b36a04ea57c8cd--