Package akka.first.app.java.messages

Examples of akka.first.app.java.messages.WordCount


    List<WordCount> dataList = new ArrayList<WordCount>();
    StringTokenizer parser = new StringTokenizer(line);
    while (parser.hasMoreTokens()) {
      String word = parser.nextToken().toLowerCase();
      if (!STOP_WORDS_LIST.contains(word)) {
        dataList.add(new WordCount(word,Integer.valueOf(1)));
      }
    }
    return new MapData(dataList);
  }
View Full Code Here

TOP

Related Classes of akka.first.app.java.messages.WordCount

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.