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

    https://github.com/apache/incubator-flink/pull/42#discussion_r14186251
  
    --- Diff: 
stratosphere-examples/stratosphere-java-examples/src/main/java/eu/stratosphere/example/java/wordcount/WordCountWithMapPartition.java
 ---
    @@ -0,0 +1,162 @@
    
+/***********************************************************************************************************************
    + *
    + * Copyright (C) 2010-2013 by the Stratosphere project 
(http://stratosphere.eu)
    + *
    + * Licensed 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 eu.stratosphere.example.java.wordcount;
    +
    +import eu.stratosphere.api.java.DataSet;
    +import eu.stratosphere.api.java.ExecutionEnvironment;
    +import eu.stratosphere.api.java.functions.FlatMapFunction;
    +import eu.stratosphere.api.java.functions.MapPartitionFunction;
    +import eu.stratosphere.api.java.tuple.Tuple2;
    +import eu.stratosphere.example.java.wordcount.util.WordCountData;
    +import eu.stratosphere.util.Collector;
    +
    +import java.util.Iterator;
    +
    +/**
    + * Implements the "WordCount" program that computes a simple word 
occurrence histogram
    + * over text files. 
    + * 
    + * <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>write a simple Stratosphere program.
    + * <li>use Tuple data types.
    + * <li>write and use user-defined functions. 
    + * </ul>
    + * 
    + */
    +@SuppressWarnings("serial")
    +public class WordCountWithMapPartition {
    +   
    +   // 
*************************************************************************
    +   //     PROGRAM
    +   // 
*************************************************************************
    +   
    +   public static void main(String[] args) throws Exception {
    +           
    +           if(!parseParameters(args)) {
    +                   return;
    +           }
    +           
    +           // set up the execution environment
    +           final ExecutionEnvironment env = 
ExecutionEnvironment.getExecutionEnvironment();
    +           
    +           // get input data
    +           DataSet<String> text = getTextDataSet(env);
    +
    +
    +
    +
    --- End diff --
    
    too many blank lines.


---
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