Package org.apache.flink.streaming.examples.dsv2.eventtime
-
Class Summary Class Description CountNewsClicks This example illustrates how to count the number of clicks on each news at 1 hour after news publication.CountNewsClicks.CountNewsClicksProcessFunction This process function will consumeCountNewsClicks.NewsEventand count the number of clicks within 1 hour of the news publication and send the resultsCountNewsClicks.NewsClicksto the output.CountNewsClicks.NewsClicks TheCountNewsClicks.NewsClicksrepresents the number of clicks on news within one hour following its publication.CountNewsClicks.NewsEvent TheCountNewsClicks.NewsEventrepresents an event on news, containing the event type, news id and the timestamp. -
Enum Summary Enum Description CountNewsClicks.NewsEventType The type ofCountNewsClicks.NewsEvent, note that only one event of typeCountNewsClicks.NewsEventType.PUBLISHfor each news.