flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1520) Read edges and vertices from CSV files
Date Mon, 13 Jul 2015 19:09:05 GMT

    [ https://issues.apache.org/jira/browse/FLINK-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625177#comment-14625177

ASF GitHub Bot commented on FLINK-1520:

Github user vasia commented on the pull request:

    Hi @andralungu,
    do you mean support for POJOs as vertex / edge values?
    I guess that's a limitation we can't easily overcome, I agree.
    Still though, a nicely designed `fromCsv()` method would simplify the common case.
    As for the examples, I don't like what they currently look like in this PR either. However,
that's not a problem of `fromCsv()`. The if-block can be easily simplified by changing `getDefaultEdgeDataSet`
to `getDefaultGraph`. The else-block looks longer because of the mapper, which, in the current
examples is in the main method.
    What I think is quite problematic, is the `types()` methods. Ideally, we would have the
    1. `types(K)` : no vertex value, no edge value
    2. `types(K, VV)`: no edge value
    3. `types(K, EV)`: no vertex value
    4. `types(K, VV, EV)`: both vertex and edge values are present
    However, because of type erasure, we can't have both 2 and 3. The current implementation
(having separate `typesEdges` and `typesVertices`) means that both should always be called,
even if not necessary. Another way would be to give 2 and 3 different names... So far I haven't
been able to come up with a nice solution. Ideas?

> Read edges and vertices from CSV files
> --------------------------------------
>                 Key: FLINK-1520
>                 URL: https://issues.apache.org/jira/browse/FLINK-1520
>             Project: Flink
>          Issue Type: New Feature
>          Components: Gelly
>            Reporter: Vasia Kalavri
>            Assignee: Shivani Ghatge
>            Priority: Minor
>              Labels: easyfix, newbie
> Add methods to create Vertex and Edge Datasets directly from CSV file inputs.

This message was sent by Atlassian JIRA

View raw message