flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PJ Van Aeken (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1962) Add Gelly Scala API
Date Wed, 06 May 2015 10:38:59 GMT

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

PJ Van Aeken commented on FLINK-1962:

Update :

Using implicit conversions, I managed to get this to work but this still looks terrible to
be honest:

import java.{lang => jlang}
val simpleEdge: Edge[jlang.Long, jlang.Long] = Edge(1L, 2L, 3L)

It implicitly converts the Scala Long to a java.lang.Long but you still have to define that
you want a java.lang.Long as Key and Value types, which is an implementation detail that you'd
want to hide from the user...

> Add Gelly Scala API
> -------------------
>                 Key: FLINK-1962
>                 URL: https://issues.apache.org/jira/browse/FLINK-1962
>             Project: Flink
>          Issue Type: Task
>          Components: Gelly, Scala API
>    Affects Versions: 0.9
>            Reporter: Vasia Kalavri

This message was sent by Atlassian JIRA

View raw message