TopNRecords Processor
In this article
Top-N queries are queries that limit the result to a specific number of rows. These are often the queries for the “most recent” or the “best” entries of a result set.
For efficient execution, the ranking must be done with a pipelined order by. You can get Top-N records based on a sorting criterion.
Top N Records works with Batch Pipeline only.
TopNRecords Processor Configuration
To add a TopNRecords processor to your pipeline, drag the processor onto the canvas and right-click on it to configure.
| Field | Description | 
|---|---|
| Top N Rows | Number of Top Rows that will be processed. | 
| Sorting Fields | Select a field on which sorting is to be applied. | 
| Sort Order | Order of sorting can be either, Ascending or Descending. | 
Click Next to detect schema and Save the configuration.
If you have any feedback on Gathr documentation, please email us!