flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Metzger (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLINK-929) Impossible to pass double with configuration
Date Thu, 12 Jun 2014 16:26:08 GMT

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

Robert Metzger edited comment on FLINK-929 at 6/12/14 4:25 PM:
---------------------------------------------------------------

Okay, it really seems to be this delegate thing. I will fix the issue.


was (Author: rmetzger):
Okay, it really seems to be this delegate thing.

> Impossible to pass double with configuration
> --------------------------------------------
>
>                 Key: FLINK-929
>                 URL: https://issues.apache.org/jira/browse/FLINK-929
>             Project: Flink
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: pre-apache-0.5
>            Reporter: Jonas Traub
>
> I discovered the following by using the new Java-API:
> When calling getDouble on the configuration given to the open method, the returned value
is always the default value.
> It seems like an override of getDouble is missing in the class TaskConfig.DelegatingConfiguration.
> {code:title=MyClass.java|borderStyle=solid}
> //[...]
> public void open(Configuration parameters) throws Exception
> {
>     //This seems to always return the default value
>     parameters.getDouble("myKey",0.0);
> }
> //[...]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message