Selecting the 5 most used hashtags in each 20 seconds - 7.1

Kafka

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Open Studio for Big Data
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Messaging components (Integration) > Kafka components
Data Quality and Preparation > Third-party systems > Messaging components (Integration) > Kafka components
Design and Development > Third-party systems > Messaging components (Integration) > Kafka components
EnrichPlatform
Talend Studio

Procedure

  1. Double-click tTop to open its Component view.
  2. In the Number of line selected field, enter the number of rows to be output to the next component, counting down from the first row of the data sorted by tTop. In this example, it is 5, meaning the 5 most used hashtags in each 20 seconds.
  3. In the Criteria table, add one row by clicking the [+] button.
  4. In the Schema column column, select count, the column for which the data is sorted, in the sort num or alpha column, select num, which means the data to be sorted are numbers, and in the Order asc or desc column, select desc to arrange the data in descending order.