Different pipes. One standard.

Type to search this site.

Search runs in your browser against a static index built with this site (Pagefind). Nothing you type is sent to a server.

TransformExperimental

std:skip #

Discards the first count items.

For example: skip the first records — a preamble, or a page already read.

A pipe is a data processing step with declared inputs and outputs; standard pipes are built into the runner.

Ports #

std:skip takes in and produces out.std:skipinrecordsoutrecords
std:skip takes in and produces out.std:skipinrecordsoutrecords
Named ports from the latest published contract. Dashed lines are optional ports.
Ports of std:skip
PortDirectionKindRequiredDescription
ininputrecordsyes
outoutputrecordsyes

Parameters #

Parameters of std:skip
NameTypeDefaultRequiredDescription
countintegernoneyes 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.

Parameters
{
  "count": 1
}
Input: in
"a"
"b"
"c"
Expected output: out
"b"
"c"

The same step as a node of a pipeline.yaml:

pipeline.yaml
nodes:
  skip:
    pipe: std:skip
    inputs:
      in: {from: inputs.in}
    parameters:
      count: 1

Run 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.

Command
printf '%s\n' '"a"' '"b"' '"c"' | openflange run std:skip --param count=1
Standard output (out)
"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