flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fhueske <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-2785] [gelly] implements fromCsvReader ...
Date Wed, 07 Oct 2015 11:13:51 GMT
Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1205#discussion_r41377863
  
    --- Diff: docs/libs/gelly_guide.md ---
    @@ -194,6 +194,29 @@ val edgeTuples = env.readCsvFile[String, String, Double]("path/to/edge/input")
     
     val graph = Graph.fromTupleDataSet(vertexTuples, edgeTuples, env)
     {% endhighlight %}
    +
    +* from a CSV file of Edge data and an optional CSV file of Vertex data.
    +In this case, Gelly will convert each row from the Edge CSV file to an `Edge`, where
the first field will be the source ID, the second field will be the target ID and the third
field (if present) will be the edge value. The parameter `readVertices` defines whether vertex
data are provided. If `readVertices` is set to `true`, then `pathVertices` must be specified.
In this case, each row from the Vertex CSV file will be converted to a `Vertex`, where the
first field will be the vertex ID and the second field will be the vertex value. If `readVertices`
is set to false, then Vertex data will be ignored and vertices will be automatically created
from the edges input.
    +If the edges have no associated value, set the `hasEdgeValues` parameter to `false`.
    --- End diff --
    
    Move this sentence after "... (if present) will be the edge value."?


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