TopNRecords Processor

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.

TopNRecords Processor Configuration

To add a TopNRecords processor to your pipeline, drag the processor onto the canvas and right-click on it to configure.

FieldDescription
Top N RowsNumber of Top Rows that will be processed.
Sorting FieldsSelect a field on which sorting is to be applied.
Sort OrderOrder of sorting can be either, Ascending or Descending.

Click Next to detect schema and Save the configuration.

Top