Class WordCountPojo
- java.lang.Object
-
- org.apache.flink.examples.java.wordcount.WordCountPojo
-
public class WordCountPojo extends Object
This example shows an implementation of WordCount without using the Tuple2 type, but a custom class.Note: All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API. This class is retained for testing purposes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWordCountPojo.TokenizerImplements the string tokenizer that splits sentences into words as a user-defined FlatMapFunction.static classWordCountPojo.WordThis is the POJO (Plain Old Java Object) that is being used for all the operations.
-
Constructor Summary
Constructors Constructor Description WordCountPojo()
-