Sequence Transform
The sequence transform generates a data stream containing a sequence of numeric values. See also the sequence expression function.
Transform Parameters
| Property | Type | Description |
|---|---|---|
| start | Number | Required. The starting value of the sequence. |
| stop | Number | Required. The ending value (exclusive) of the sequence. |
| step | Number | The step value between sequence entries (default 1, or -1 if stop < start). |
| as | String | ≥ 4.2 The name of the output field to which sequence values should be written (default is "data"). |
Usage
{"type": "sequence", "start": 0, "stop": 5}
Generates the data stream:
[
{"data": 0},
{"data": 1},
{"data": 2},
{"data": 3},
{"data": 4}
]
Specifying an output field:
{"type": "sequence", "start": 1, "stop": 10, "step": 2, "as": "value" }
Generates the data stream:
[
{"value": 1},
{"value": 3},
{"value": 5},
{"value": 7},
{"value": 9}
]