You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Andra Lungu (JIRA)" <ji...@apache.org> on 2015/06/03 10:32:50 UTC

[jira] [Created] (FLINK-2140) Access the number of vertices from within the GSA functions

Andra Lungu created FLINK-2140:
----------------------------------

             Summary: Access the number of vertices from within the GSA functions
                 Key: FLINK-2140
                 URL: https://issues.apache.org/jira/browse/FLINK-2140
             Project: Flink
          Issue Type: New Feature
          Components: Gelly
    Affects Versions: 0.9
            Reporter: Andra Lungu


Similarly to the Vertex-centric approach we would like to allow the user to access the number of vertices from the Gather, Sum and Apply functions respectively. This property will become available by setting [setOptNumVertices()] the numVertices option to true. 

The number of vertices can then be accessed in the gather, sum and apply functions using the getNumberOfVertices() method. If the option is not set in the configuration, this method will return -1. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)