Return-Path: X-Original-To: apmail-giraph-user-archive@www.apache.org Delivered-To: apmail-giraph-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85EFC10680 for ; Sat, 22 Feb 2014 13:43:35 +0000 (UTC) Received: (qmail 61427 invoked by uid 500); 22 Feb 2014 13:43:34 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 61191 invoked by uid 500); 22 Feb 2014 13:43:33 -0000 Mailing-List: contact user-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@giraph.apache.org Delivered-To: mailing list user@giraph.apache.org Received: (qmail 61182 invoked by uid 99); 22 Feb 2014 13:43:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Feb 2014 13:43:32 +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 (athena.apache.org: domain of koutras.apostolos@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-yk0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Feb 2014 13:43:28 +0000 Received: by mail-yk0-f173.google.com with SMTP id 10so9222164ykt.4 for ; Sat, 22 Feb 2014 05:43:07 -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=/C9ARI4svBQ5u9KXbKBH6EvhHXyNBUwA9rWZD+XKdwc=; b=QjWa5+wWqWzlmt7WT7hqD/pRanVEHIaIeIlfe7UJH924tXh5j6mZVcGSnYxttfdtNP luU3GOp/lQY2XDw53VlxTc8vaLFqT9S2CIC5tHK6ljXU6NL8ubLVHHChJxXvuH7QHmEq iRYQ67sbj4C/nR+u+Tr/kXkfjjKZa2snWKNGUuNnb+ihf0UF8lu8JnFUcrSsmLYWDpgI vBRgoPPjJPvStns4Xde9lNxRKsYqZ6qbOXnGazwBp2P2HhGCmJ0E51oVY6Bi29oUkRoN ADiIu2EoIiCxnysZSGX/tmy3Cps1/FMkD4AwxeQv20ERZCasYXQlgORR4TGTLFv3gHVQ NPSg== MIME-Version: 1.0 X-Received: by 10.236.140.37 with SMTP id d25mr17616043yhj.40.1393076587422; Sat, 22 Feb 2014 05:43:07 -0800 (PST) Received: by 10.170.111.79 with HTTP; Sat, 22 Feb 2014 05:43:07 -0800 (PST) In-Reply-To: <530898EA.2010305@apache.org> References: <530898EA.2010305@apache.org> Date: Sat, 22 Feb 2014 15:43:07 +0200 Message-ID: Subject: Re: overriding vertex value From: Apostolos Koutras To: user@giraph.apache.org, ssc@apache.org Content-Type: multipart/alternative; boundary=20cf303ea83823674c04f2feeb3c X-Virus-Checked: Checked by ClamAV on apache.org --20cf303ea83823674c04f2feeb3c Content-Type: text/plain; charset=ISO-8859-1 The main algorithm Betweeness.java is based on SimpleShortestPaths***.java. In order to implement the new algorithm I had to override the message value as well as the vertex value. I dug up the examples, and the most compatible files where the files about bracha-something calculation. The overrided vertex value is myVertexValue.java and is based on Bracha*Value.java and in there lies the problem I suppose, probably due to misconfigurating the serializer // Serialization functions ----------------------------------------------- @Override public void readFields(DataInput input) throws IOException { // this.distance=input.readLong(); this.sigma=input.readDouble(); // this.delta=input.readDouble(); } @Override public void write(DataOutput output) throws IOException { int sz; output.writeLong(this.distance); output.writeDouble(this.sigma); output.writeDouble(this.delta); } Of course, when I try to run the example I try to use the following handler, that works for the simpleShortest paths, but now that I've overriden the vertex value??? org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat The main code of the project is on www.github.com/koutras/gb , to get the whole idea... At the moment Iam in a stalemate.... Any ideas so that I can make even a small step are needed... Thanks.. On Sat, Feb 22, 2014 at 2:32 PM, Sebastian Schelter wrote: > Hi Apostolous, > > can you provide a few more details on what you're exactly trying to > achieve? > > Best, > Sebastian > > > On 02/22/2014 01:07 PM, Apostolos Koutras wrote: > >> Hi to all, can you please direct be to an older post of how to override >> the >> vertex value and implement the serializer? Iam still in the dark.... >> >> Thank you... >> >> > --20cf303ea83823674c04f2feeb3c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The main algorithm Betweeness.java is based on Simple= ShortestPaths***.java. In order to implement the new algorithm I had to ove= rride the message value as well as the vertex value.

I dug up the examples, and the most compatible fi= les where the files about bracha-something calculation.

The overrided vertex value is myVertexValue.java and is based on =A0Bracha= *Value.java and in there lies the problem I suppose, probably due to miscon= figurating the serializer

// Serialization function= s -----------------------------------------------

= =A0=A0@Override
=A0=A0public void readFields(<= /span>DataInput input<= /span>) throws IOExceptio= n {
=A0// this.distance=3Di= nput.readLong();
=A0 this.sigma=3Dinput.readDouble();
// this.delta=3Dinput.rea= dDouble();
=A0=A0}

=A0=A0@Override
=A0=A0public void write(DataOutput output) throws IOException {
=A0=A0=A0=A0int sz;

<= span class=3D"" style>output.writeLong(this.= distance);
output.writeDouble(t= his.sigma);
output.writeDouble(t= his.delta);

=A0}


Of course, when I try to run the example I try to use the following handler= , that works for the simpleShortest paths, but now that I've overriden = the vertex value???

org.apache.giraph.io.formats.JsonLongDoubleFloatDo= ubleVertexInputFormat

=A0The main code of the project is on www.github.com/koutras/gb =A0 , to get the whole idea= ...
At the moment Iam in a stalemate.... Any ideas so that I can make eve= n a small step are needed... Thanks..


On Sat, Feb 22, 2014 at 2:32 PM, Sebasti= an Schelter <ssc@apache.org> wrote:
Hi Apostolous,

can you provide a few more details on what you're exactly trying to ach= ieve?

Best,
Sebastian


On 02/22/2014 01:07 PM, Apostolos Koutras wrote:
Hi to all, can you please direct be to an older post of how to override the=
vertex value and implement the serializer? Iam still in the dark....

Thank you...



--20cf303ea83823674c04f2feeb3c--