Ports #
| Port | Direction | Kind | Required | Description |
|---|---|---|---|---|
in | input | records | yes | |
out | output | records | yes |
Parameters #
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
count | integer | none | yes | Minimum 0. |
When to use it #
- Ignore a known number of leading records, for example a summary record that precedes the data.
- Together with
std:limit, take a later page of a stream.
When to use something else
- It counts records and does not look at them: to drop records by what they contain use
std:filter.
A tested example #
Nothing here is invented: this is the test “skips the first” from the pipe's own portable test file, which every conformant runner must pass.
{
"count": 1
}"a"
"b"
"c""b"
"c"The same step as a node of a pipeline.yaml:
nodes:
skip:
pipe: std:skip
inputs:
in: {from: inputs.in}
parameters:
count: 1Run it #
The pipe runs on its own from a shell. The input is the test input above. The quickstart shows how to get the openflange command.
printf '%s\n' '"a"' '"b"' '"c"' | openflange run std:skip --param count=1"b"
"c"Executed with openflange 0.0.1 (go1.27.1 linux/amd64), built from commit 11cf8cc of the reference implementation; the output shown is what it printed, and it matches the test.
Notes from the manifest #
The pipe's manifest, OPENFLANGE.md, carries these notes.
Part of the OpenFlange standard library (std, version 0.1).
Drops the first count items and passes every later item unchanged (items
are never decoded).
Reference #
- Maturity
- Experimental
- Processing scope
record- Manifest version
0.1.0
- Normative definition: std:skip in the standard library specification
- Manifest and tests: std/0.1/skip in the specification repository