You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hama.apache.org by Ηλίας Τριχόπουλος <it...@csd.auth.gr> on 2013/04/15 00:28:56 UTC
Message class in Hama Graph
Hello everyone,
I am new in developing with Hama and generally with BSP model.
The Vertex interface expects an argument "M" that defines the message class. In my class that extends the Vertex class, I am using the sendMessageToNeighboors method (inside the compute method). The sendMessageToNeighboors method expects the same argument type as the Vertex class for the message. During the computation (in different supersteps) I want to be able to send different kind of messages.
Is this somehow possible?
Thank you,
--
Ilias Trichopoulos
@nop33wordpress
Re: Message class in Hama Graph
Posted by Ηλίας Τριχόπουλος <it...@csd.auth.gr>.
Thanks for your support!
I finally came up with the same idea, I will try it and see what happens
--
Ilias Trichopoulos
@nop33wordpress
On Apr 15, 2013, at 4:10 AM, Suraj Menon <su...@apache.org> wrote:
> With current implementation, if the messages sent are of same type per
> superstep, you can also define a base class for defining the message class
> and the API. The messages sent and received could be derived classes. Off
> course this would involve some casting.
>
> -Suraj
>
>
> On Sun, Apr 14, 2013 at 8:31 PM, Edward <ed...@udanax.org> wrote:
>
>> You can use MapWritable to send different type messages among processors.
>>
>> Sent from my iPhone
>>
>> On Apr 15, 2013, at 7:28 AM, Ηλίας Τριχόπουλος <it...@csd.auth.gr>
>> wrote:
>>
>>> Hello everyone,
>>>
>>> I am new in developing with Hama and generally with BSP model.
>>> The Vertex interface expects an argument "M" that defines the message
>> class. In my class that extends the Vertex class, I am using the
>> sendMessageToNeighboors method (inside the compute method). The
>> sendMessageToNeighboors method expects the same argument type as the Vertex
>> class for the message. During the computation (in different supersteps) I
>> want to be able to send different kind of messages.
>>> Is this somehow possible?
>>>
>>> Thank you,
>>> --
>>> Ilias Trichopoulos
>>> @nop33wordpress
>>> <linkedin-button.png.opt45x45o0,0s45x45.png>
>>>
>>
Re: Message class in Hama Graph
Posted by Suraj Menon <su...@apache.org>.
With current implementation, if the messages sent are of same type per
superstep, you can also define a base class for defining the message class
and the API. The messages sent and received could be derived classes. Off
course this would involve some casting.
-Suraj
On Sun, Apr 14, 2013 at 8:31 PM, Edward <ed...@udanax.org> wrote:
> You can use MapWritable to send different type messages among processors.
>
> Sent from my iPhone
>
> On Apr 15, 2013, at 7:28 AM, Ηλίας Τριχόπουλος <it...@csd.auth.gr>
> wrote:
>
> > Hello everyone,
> >
> > I am new in developing with Hama and generally with BSP model.
> > The Vertex interface expects an argument "M" that defines the message
> class. In my class that extends the Vertex class, I am using the
> sendMessageToNeighboors method (inside the compute method). The
> sendMessageToNeighboors method expects the same argument type as the Vertex
> class for the message. During the computation (in different supersteps) I
> want to be able to send different kind of messages.
> > Is this somehow possible?
> >
> > Thank you,
> > --
> > Ilias Trichopoulos
> > @nop33wordpress
> > <linkedin-button.png.opt45x45o0,0s45x45.png>
> >
>
Re: Message class in Hama Graph
Posted by Edward <ed...@udanax.org>.
You can use MapWritable to send different type messages among processors.
Sent from my iPhone
On Apr 15, 2013, at 7:28 AM, Ηλίας Τριχόπουλος <it...@csd.auth.gr> wrote:
> Hello everyone,
>
> I am new in developing with Hama and generally with BSP model.
> The Vertex interface expects an argument "M" that defines the message class. In my class that extends the Vertex class, I am using the sendMessageToNeighboors method (inside the compute method). The sendMessageToNeighboors method expects the same argument type as the Vertex class for the message. During the computation (in different supersteps) I want to be able to send different kind of messages.
> Is this somehow possible?
>
> Thank you,
> --
> Ilias Trichopoulos
> @nop33wordpress
> <linkedin-button.png.opt45x45o0,0s45x45.png>
>