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

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

GitHub user sachingoel0101 opened a pull request:

    https://github.com/apache/flink/pull/966

    [FLINK-1819][core]Allow access to RuntimeContext from Input and Output 
formats

    1. Introduces new Rich Input and Output formats, similar to Rich Functions.
    2. Makes all existing input and output formats rich, without any API 
breaking changes.
    3. Provides RuntimeContext to GenericSink and GenericSource operators
    4. DataSourceTask and DataSinkTask set DistributedUDFContext to their input 
and output formats respectively.
    5. Complete access to RuntimeContext, including access to accumulators.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sachingoel0101/flink flink-1819

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/966.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #966
    
----
commit 627ee290fb88ac3e670fe86a734116b06f431ade
Author: Sachin Goel <sachingoel0...@gmail.com>
Date:   2015-07-31T04:36:20Z

    [FLINK-1819][core]Allow access to RuntimeContext from Input and Output
    formats

----


> Allow access to RuntimeContext from Input and OutputFormats
> -----------------------------------------------------------
>
>                 Key: FLINK-1819
>                 URL: https://issues.apache.org/jira/browse/FLINK-1819
>             Project: Flink
>          Issue Type: Improvement
>          Components: Local Runtime
>    Affects Versions: 0.9, 0.8.1
>            Reporter: Fabian Hueske
>            Priority: Minor
>             Fix For: 0.9
>
>
> User function that extend a RichFunction can access a {{RuntimeContext}} 
> which gives the parallel id of the task and access to Accumulators and 
> BroadcastVariables. 
> Right now, Input and OutputFormats cannot access their {{RuntimeContext}}.



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

Reply via email to