Package org.apache.wayang.apps.wordcount
Class WordCountWithJavaNativeAPI
java.lang.Object
org.apache.wayang.apps.wordcount.WordCountWithJavaNativeAPI
Example Apache Wayang (incubating) App that does a word count -- the Hello World of Map/Reduce-like systems.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WayangPlan
createWayangPlan
(String inputFileUrl, Collection<Tuple2<String, Integer>> collector) Creates theWayangPlan
for the word count app.static void
-
Constructor Details
-
WordCountWithJavaNativeAPI
public WordCountWithJavaNativeAPI()
-
-
Method Details
-
createWayangPlan
public static WayangPlan createWayangPlan(String inputFileUrl, Collection<Tuple2<String, Integer>> collector) throws URISyntaxException, IOExceptionCreates theWayangPlan
for the word count app.- Parameters:
inputFileUrl
- the file whose words should be counted- Throws:
URISyntaxException
IOException
-
main
- Throws:
IOException
URISyntaxException
-