giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avery Ching (JIRA)" <>
Subject [jira] [Resolved] (GIRAPH-272) cannot extend Vertex in user code
Date Sat, 28 Jul 2012 16:46:34 GMT


Avery Ching resolved GIRAPH-272.

    Resolution: Won't Fix

Joseph, you can extend EdgeListVertex and other Giraph bundled implementatins.  The problem
with extending Vertex is that we have some package private methods to prevent users from doing
bad things.

   * Copy the messages this vertex should process in the current superstep
   * @param messages the messages sent to this vertex in the previous superstep
  abstract void putMessages(Iterable<M> messages);

   * Release unnecessary resources (will be called after vertex returns from
   * {@link #compute(Iterable)})
  abstract void releaseResources();

If you think of a better way, we're open to it!
> cannot extend Vertex in user code
> ---------------------------------
>                 Key: GIRAPH-272
>                 URL:
>             Project: Giraph
>          Issue Type: Bug
>          Components: graph
>    Affects Versions: 0.2.0
>            Reporter: Joseph Adler
>            Priority: Critical
> As currently written, it's not possible to create a class that extends Vertex in user
code. I think this is because the abstract methods putMessages and releaseResources  are abstract
and neither public nor protected.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message