tTopBy
Groups and sorts data and outputs several rows from the first one of the data in
each group.
tTopBy groups the
input data by applying user-defined keys, sorts records in each group and sends to its
following component a given number of first rows of the sorted records.
Depending on the Talend
product you are using, this component can be used in one, some or all of the following
Job frameworks:
-
Spark Batch: see tTopBy properties for Apache Spark Batch.
The component in this framework is available in all subscription-based Talend products with Big Data
and Talend Data Fabric. -
Spark Streaming: see tTopBy properties for Apache Spark Streaming.
This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.
tTopBy properties for Apache Spark Batch
These properties are used to configure tTopBy running in the Spark Batch Job framework.
The Spark Batch
tTopBy component belongs to the Processing family.
The component in this framework is available in all subscription-based Talend products with Big Data
and Talend Data Fabric.
Basic settings
Schema and Edit |
A schema is a row description. It defines the number of fields Click Edit
Click Sync |
 |
Built-In: You create and store the schema locally for this component |
 |
Repository: You have already created the schema and stored it in the |
Number of line selected |
Enter the number of rows to be outputted. The current component selects this number of |
Key |
Select the column(s) from which the records are used as keys to group the input You need to click [+] to add as many lines as required to use as keys for the grouping to be |
Criteria |
Click [+] to add as many lines as required for the sort |
In the Schema column column, select the column from your |
|
In the other columns, select how you need the data to be sorted. For example, if you need |
Usage
Usage rule |
This component is used as an intermediate step. This component, along with the Spark Batch component Palette it belongs to, Note that in this documentation, unless otherwise explicitly stated, a |
Spark Connection |
In the Spark
Configuration tab in the Run view, define the connection to a given Spark cluster for the whole Job. In addition, since the Job expects its dependent jar files for execution, you must specify the directory in the file system to which these jar files are transferred so that Spark can access these files:
This connection is effective on a per-Job basis. |
Related scenarios
No scenario is available for the Spark Batch version of this component
yet.
tTopBy properties for Apache Spark Streaming
These properties are used to configure tTopBy running in the Spark Streaming Job framework.
The Spark Streaming
tTopBy component belongs to the Processing family.
This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.
Basic settings
Schema and Edit |
A schema is a row description. It defines the number of fields Click Edit
Click Sync |
 |
Built-In: You create and store the schema locally for this component |
 |
Repository: You have already created the schema and stored it in the |
Number of line selected |
Enter the number of rows to be outputted. The current component selects this number of |
Key |
Select the column(s) from which the records are used as keys to group the input You need to click [+] to add as many lines as required to use as keys for the grouping to be |
Criteria |
Click [+] to add as many lines as required for the sort |
In the Schema column column, select the column from your |
|
In the other columns, select how you need the data to be sorted. For example, if you need |
Usage
Usage rule |
This component is used as an intermediate step. This component, along with the Spark Streaming component Palette it belongs to, appears Note that in this documentation, unless otherwise explicitly stated, a scenario presents |
Spark Connection |
In the Spark
Configuration tab in the Run view, define the connection to a given Spark cluster for the whole Job. In addition, since the Job expects its dependent jar files for execution, you must specify the directory in the file system to which these jar files are transferred so that Spark can access these files:
This connection is effective on a per-Job basis. |
Related scenarios
No scenario is available for the Spark Streaming version of this component
yet.