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

ASF GitHub Bot commented on FLINK-1422:
---------------------------------------

Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/350#discussion_r24167714
  
    --- Diff: docs/programming_guide.md ---
    @@ -2398,6 +2399,61 @@ of a function, or use the `withParameters(...)` 
method to pass in a configuratio
     [Back to top](#top)
     
     
    +Passing parameters to functions
    +-------------------
    +
    +Parameters can be passed to rich functions using either the constructor 
(if the function is
    --- End diff --
    
    Only the Configuration object method requires a RichFunction to overwrite 
`open()`. Configuring via the constructor (or any other method which sets 
non-transient fields) works also for functions that implement the function 
interfaces. Also it is not required that the class is defined as `static 
final`. That is only necessary if the class is defined inside another class. 


> Missing usage example for "withParameters"
> ------------------------------------------
>
>                 Key: FLINK-1422
>                 URL: https://issues.apache.org/jira/browse/FLINK-1422
>             Project: Flink
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 0.8
>            Reporter: Alexander Alexandrov
>            Assignee: Chesnay Schepler
>            Priority: Trivial
>             Fix For: 0.8.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I am struggling to find a usage example of the "withParameters" method in the 
> documentation. At the moment I only see this note:
> {quote}
> Note: As the content of broadcast variables is kept in-memory on each node, 
> it should not become too large. For simpler things like scalar values you can 
> simply make parameters part of the closure of a function, or use the 
> withParameters(...) method to pass in a configuration.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to