tTopBy properties for Apache Spark Structured Streaming
Last updated: 9/30/2026These properties are used to configure tTopBy running in the Spark Structured Streaming Job framework.
The Spark Structured Streaming tTopBy component belongs to the Processing family.
The streaming version of this component is available in Talend Real-Time Big Data Platform and in Talend Data Fabric.
Basic settings
| Properties | Description |
|---|---|
| Schema and Edit schema |
A schema is a row description. It defines the fields (columns) processed by the component. When you create a Spark Job, avoid the reserved word line when naming fields.
Click Edit schema to modify the schema. If you modify a Repository schema, the available options include:
|
| Number of line selected |
Enter the number of rows to be outputted. The current component selects this number of rows down from the first rows of the sorted data. |
| Partition Key |
Select the column(s) from which the records are used as keys to group the input data. You need to click [+] to add as many lines as required to use as keys for the grouping to be completed |
| Criteria |
|
Usage
| Usage guidance | Description |
|---|---|
| Usage rule |
This component is used as an intermediate step. This component maintains a stateful ranking of the top N rows per partition group across micro-batches. If no partition key is defined, all rows are ranked together as a single global group. Information noteRestriction: The output mode of the downstream output component
must not be set to Append. Use
Update or Complete
instead.
This component, along with the Spark Structured Streaming component Palette it belongs to, appears only when you are creating a Spark Structured Streaming Job. |
| Spark Connection |
You need to use the Structured Streaming Configuration tab in the Run view to define the connection to a Spark cluster for the whole Job. This connection is effective on a per-Job basis. |