incubator-giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Homan (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GIRAPH-132) Simplify boolean expression in GraphMapper::map()
Date Mon, 30 Jan 2012 20:25:10 GMT
Simplify boolean expression in GraphMapper::map()
-------------------------------------------------

                 Key: GIRAPH-132
                 URL: https://issues.apache.org/jira/browse/GIRAPH-132
             Project: Giraph
          Issue Type: Improvement
            Reporter: Jakob Homan
            Priority: Trivial


The boolean expression in:
{noformat}    @Override
    public void map(Object key, Object value, Context context)
        throws IOException, InterruptedException {
        // map() only does computation
        // 1) Run checkpoint per frequency policy.
        // 2) For every vertex on this mapper, run the compute() function
        // 3) Wait until all messaging is done.
        // 4) Check if all vertices are done.  If not goto 2).
        // 5) Dump output.
        if (done == true) {
            return;
        }{noformat}
can be simplified.

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

        

Mime
View raw message