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 solution 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 only if you have subscribed to one
of the
Talend
solutions with Big Data. -
Spark Streaming: see tTopBy properties for Apache Spark Streaming.
The component in this framework is available only if you have subscribed to Talend Real-time Big Data Platform or 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 only if you have subscribed to one
of the
Talend
solutions with Big Data.
Basic settings
|
Schema and Edit |
A schema is a row description. It defines the number of fields (columns) to Click Edit schema to make changes to the schema.
Click Sync columns to retrieve the schema from |
|
|
Built-In: You create and store the |
|
|
Repository: You have already created |
|
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, appears only Note that in this documentation, unless otherwise |
|
Spark Connection |
You need to use the Spark Configuration tab in
the Run view to 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.
The component in this framework is available only if you have subscribed to Talend Real-time Big Data Platform or Talend Data
Fabric.
Basic settings
|
Schema and Edit |
A schema is a row description. It defines the number of fields (columns) to Click Edit schema to make changes to the schema.
Click Sync columns to retrieve the schema from |
|
|
Built-In: You create and store the |
|
|
Repository: You have already created |
|
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 |
You need to use the Spark Configuration tab in
the Run view to 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.