[
https://issues.apache.org/jira/browse/GIRAPH-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
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.
{code}
/**
* 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();
{code}
If you think of a better way, we're open to it!
> cannot extend Vertex in user code
> ---------------------------------
>
> Key: GIRAPH-272
> URL: https://issues.apache.org/jira/browse/GIRAPH-272
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira