Package org.apache.wayang.apps.wordcount
Class WordCountWithJavaNativeAPI
- java.lang.Object
-
- org.apache.wayang.apps.wordcount.WordCountWithJavaNativeAPI
-
public class WordCountWithJavaNativeAPI extends java.lang.ObjectExample Apache Wayang (incubating) App that does a word count -- the Hello World of Map/Reduce-like systems.
-
-
Constructor Summary
Constructors Constructor Description WordCountWithJavaNativeAPI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WayangPlancreateWayangPlan(java.lang.String inputFileUrl, java.util.Collection<Tuple2<java.lang.String,java.lang.Integer>> collector)Creates theWayangPlanfor the word count app.static voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
createWayangPlan
public static WayangPlan createWayangPlan(java.lang.String inputFileUrl, java.util.Collection<Tuple2<java.lang.String,java.lang.Integer>> collector) throws java.net.URISyntaxException, java.io.IOException
Creates theWayangPlanfor the word count app.- Parameters:
inputFileUrl- the file whose words should be counted- Throws:
java.net.URISyntaxExceptionjava.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, java.net.URISyntaxException- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
-