flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andralungu <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-2150][gelly] Added library method for a...
Date Sun, 07 Jun 2015 13:39:24 GMT
GitHub user andralungu opened a pull request:

    https://github.com/apache/flink/pull/801

    [FLINK-2150][gelly] Added library method for assigning unique labels to vertices

    This PR adds a library method that assigns unique labels to vertices. 
    The following facts are used:
     * a map function generates an n-bit(n - number of parallel tasks) ID based on its own
index
     * with each record, a counter c is increased
     * the unique label is then produced by shifting the counter c by the n-bit mapper ID
    
    Thanks @fhueske for the useful tips!
    And thanks @rmetzger for the nice stackoverflow answer (http://stackoverflow.com/questions/30596556/zipwithindex-on-apache-flink)
    
    If you guys find some spare minutes, you are more than welcome to have a look at what
I did here. If not, we'll just let @vasia do what she does best :) 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andralungu/flink generateUniqueIds

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/801.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #801
    
----
commit d655187a9626be6aca734fdbe035de62e3ead839
Author: andralungu <lungu.andra@gmail.com>
Date:   2015-06-07T13:27:24Z

    [FLINK-2150][gelly] Added library method for assigning unique labels to vertcies

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message