[jira] [Updated] (GIRAPH-118) Clarify messages behavior in BasicVertex

2012-01-06 Thread Claudio Martella (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/GIRAPH-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claudio Martella updated GIRAPH-118:


  Description: 
initialize() can receive a null parameter for messages (at least that's what 
EdgeListVertex does). We should avoid that and pass an empty Iterable instead. 
That should be cheap for us inside of the InputFormat, just passing a static 
immutable empty list.

setMessages(IterableM) should be changed to putMessages(IterableM). the set 
prefix suggests an assignment, while setMessages is used to transfer the 
messages to the internal datastructure the user is responsible for. 
putMessages() should clarify this.
Affects Version/s: 0.70.0
 Assignee: Claudio Martella

 Clarify messages behavior in BasicVertex
 

 Key: GIRAPH-118
 URL: https://issues.apache.org/jira/browse/GIRAPH-118
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
Priority: Minor

 initialize() can receive a null parameter for messages (at least that's what 
 EdgeListVertex does). We should avoid that and pass an empty Iterable 
 instead. That should be cheap for us inside of the InputFormat, just passing 
 a static immutable empty list.
 setMessages(IterableM) should be changed to putMessages(IterableM). the 
 set prefix suggests an assignment, while setMessages is used to transfer the 
 messages to the internal datastructure the user is responsible for. 
 putMessages() should clarify this.

--
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




[jira] [Updated] (GIRAPH-118) Clarify messages behavior in BasicVertex

2012-01-06 Thread Claudio Martella (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/GIRAPH-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claudio Martella updated GIRAPH-118:


Attachment: GIRAPH-119.diff

Apparently the initialize() issue is also true for other parameters as well 
such as the edges (and outside of the documentation also vertexId: I'm looking 
at TestEdgeListVertex i.e.).

With this little one I just touched the putMessages() issue, probably we can 
think about the initialize() later.

 Clarify messages behavior in BasicVertex
 

 Key: GIRAPH-118
 URL: https://issues.apache.org/jira/browse/GIRAPH-118
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
Priority: Minor
 Attachments: GIRAPH-119.diff


 initialize() can receive a null parameter for messages (at least that's what 
 EdgeListVertex does). We should avoid that and pass an empty Iterable 
 instead. That should be cheap for us inside of the InputFormat, just passing 
 a static immutable empty list.
 setMessages(IterableM) should be changed to putMessages(IterableM). the 
 set prefix suggests an assignment, while setMessages is used to transfer the 
 messages to the internal datastructure the user is responsible for. 
 putMessages() should clarify this.

--
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




[jira] [Updated] (GIRAPH-118) Clarify messages behavior in BasicVertex

2012-01-06 Thread Claudio Martella (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/GIRAPH-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claudio Martella updated GIRAPH-118:


Attachment: GIRAPH-118.diff

Messed up with issue number in patch filename, sorry :)

 Clarify messages behavior in BasicVertex
 

 Key: GIRAPH-118
 URL: https://issues.apache.org/jira/browse/GIRAPH-118
 Project: Giraph
  Issue Type: Improvement
  Components: graph
Affects Versions: 0.70.0
Reporter: Claudio Martella
Assignee: Claudio Martella
Priority: Minor
 Attachments: GIRAPH-118.diff, GIRAPH-119.diff


 initialize() can receive a null parameter for messages (at least that's what 
 EdgeListVertex does). We should avoid that and pass an empty Iterable 
 instead. That should be cheap for us inside of the InputFormat, just passing 
 a static immutable empty list.
 setMessages(IterableM) should be changed to putMessages(IterableM). the 
 set prefix suggests an assignment, while setMessages is used to transfer the 
 messages to the internal datastructure the user is responsible for. 
 putMessages() should clarify this.

--
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