flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjsax <...@git.apache.org>
Subject [GitHub] flink pull request: [FLINK-2525]Add configuration support in Storm...
Date Mon, 07 Sep 2015 14:57:39 GMT
Github user mjsax commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1046#discussion_r38867651
  
    --- Diff: flink-contrib/flink-storm-compatibility/flink-storm-compatibility-examples/src/main/java/org/apache/flink/stormcompatibility/excamation/ExclamationWithStormSpout.java
---
    @@ -85,12 +103,43 @@ public static void main(final String[] args) throws Exception {
     	// USER FUNCTIONS
     	// *************************************************************************
     
    -	private static class ExclamationMap implements MapFunction<String, String> {
    +	private static class ExclamationMap extends AbstractRichFunction implements MapFunction<String,
String> {
     		private static final long serialVersionUID = -684993133807698042L;
    +		private String exclamation;
    +
    +		@Override
    +		public void open(Configuration parameters) throws Exception {
    +			RuntimeContext ctx = super.getRuntimeContext();
    --- End diff --
    
    Same here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message