[ https://issues.apache.org/jira/browse/FLINK-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652614#comment-14652614 ]
ASF GitHub Bot commented on FLINK-1819: --------------------------------------- Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/966#discussion_r36135989 --- Diff: flink-tests/src/test/java/org/apache/flink/test/recordJobs/util/DiscardingOutputFormat.java --- @@ -19,14 +19,14 @@ package org.apache.flink.test.recordJobs.util; -import org.apache.flink.api.common.io.OutputFormat; +import org.apache.flink.api.common.io.RichOutputFormat; import org.apache.flink.configuration.Configuration; import org.apache.flink.types.Record; /** * A simple output format that discards all data by doing nothing. */ -public class DiscardingOutputFormat implements OutputFormat<Record> { +public class DiscardingOutputFormat extends RichOutputFormat<Record> { --- End diff -- I don't think the DiscardingOutputFormat needs to access the RuntimeContext > 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)