You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Henry Saputra (JIRA)" <ji...@apache.org> on 2014/07/08 06:53:33 UTC
[jira] [Commented] (FLINK-655) Rename
DataSet.withBroadcastSet(DataSet, String) method
[ https://issues.apache.org/jira/browse/FLINK-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14054514#comment-14054514 ]
Henry Saputra commented on FLINK-655:
-------------------------------------
If no one object I would like to assign it to myself
> Rename DataSet.withBroadcastSet(DataSet, String) method
> -------------------------------------------------------
>
> Key: FLINK-655
> URL: https://issues.apache.org/jira/browse/FLINK-655
> Project: Flink
> Issue Type: Improvement
> Reporter: GitHub Import
> Labels: github-import, starter
> Fix For: pre-apache
>
>
> To broadcast a data set you have to do the following:
> ```java
> lorem.map(new MyMapper()).withBroadcastSet(toBroadcast, "toBroadcastName")
> ```
> In the operator you call:
> ```java
> getRuntimeContext().getBroadcastVariable("toBroadcastName")
> ```
> I propose to have both method names consistent, e.g.
> - `withBroadcastVariable(DataSet, String)`, or
> - `getBroadcastSet(String)`.
> ---------------- Imported from GitHub ----------------
> Url: https://github.com/stratosphere/stratosphere/issues/655
> Created by: [uce|https://github.com/uce]
> Labels: enhancement, java api, user satisfaction,
> Created at: Wed Apr 02 16:29:08 CEST 2014
> State: open
--
This message was sent by Atlassian JIRA
(v6.2#6252)