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

    https://github.com/apache/flink/pull/573#discussion_r27808843
  
    --- Diff: 
flink-staging/flink-streaming/flink-storm-compatibility/src/main/java/org/apache/flink/stormcompatibility/examples/BoltTokenizerWordCount.java
 ---
    @@ -0,0 +1,127 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.flink.stormcompatibility.examples;
    +
    +import org.apache.flink.api.java.tuple.Tuple2;
    +import org.apache.flink.api.java.typeutils.TypeExtractor;
    +import org.apache.flink.examples.java.wordcount.util.WordCountData;
    +import 
org.apache.flink.stormcompatibility.examples.stormoperators.StormBoltTokenizer;
    +import org.apache.flink.stormcompatibility.wrappers.StormBoltWrapper;
    +import org.apache.flink.streaming.api.datastream.DataStream;
    +import 
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
    +
    +import backtype.storm.topology.IRichBolt;
    +
    +
    +
    +
    +
    +/**
    + * Implements the "WordCount" program that computes a simple word 
occurrence histogram over text files in a streaming
    + * fashion. The tokenizer step is performed by a Storm {@link IRichBolt 
bolt}.
    + * 
    + * <p>
    + * The input is a plain text file with lines separated by newline 
characters.
    + * 
    + * <p>
    + * Usage: <code>WordCount &lt;text path&gt; &lt;result path&gt;</code><br>
    + * If no parameters are provided, the program is run with default data 
from {@link WordCountData}.
    + * 
    + * <p>
    + * This example shows how to:
    + * <ul>
    + * <li>use a Storm bolt within a Flink Streaming program.
    + * </ul>
    + */
    +public class BoltTokenizerWordCount {
    +   
    --- End diff --
    
    Nice! :+1: 


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to