LIMIT

In a data query, you can use the LIMIT operator to limit or skip a number of elements in the stream.

This page discusses:

See Also
SORT
Expression Language
Defining Data Queries

Input

There is one input. There are no constraints on the element type or on the number of elements in the stream.

Note: You can use a SORT operator before the LIMIT operator in the query to sort elements.

Output

There is one output. The elements and their order are modified, only the number of elements changes.

General Parameters

Parameter Description
Label

Specify the label to display below the operator type in the data query.

Description

Add a description to display as tooltip on hover over the operator icon.

Tip: It is useful to explain what the operator does, especially when you share the data query with other users.
Operator input variable Specify the name to give to the variable that contains the input data. The variable is then available when you define expressions.

Limiting Criteria Parameters

Parameter Description
Number of elements to keep This expression defines the number of elements to keep. For example, 30.
Number of elements to skip This expression defines the number of elements to skip before keeping elements. For example, 12.

Example

In the following example, the operator limits the number of elements to 2.