screamer.js
    Preparing search index...

    Interface Pipeline

    interface Pipeline {
        alignOutputs: boolean;
        inputs: Node[];
        maxPending: number;
        outputs: Node[];
        dispose(): void;
        dumps(format?: "json" | "cbor"): string | Uint8Array<ArrayBufferLike>;
        live(): LiveDriver;
        save(path: string): Promise<void>;
        toDict(): Record<string, unknown>;
        toJSON(): Record<string, unknown>;
        toJSONText(indent?: number | null): string;
        (feeds: Feeds): Output | Output[];
        (
            feeds:
                | Iterator<unknown, any, any>
                | Record<string, Iterator<unknown, any, any>>,
        ): Generator<PipelineRow, void, undefined>;
    }
    • Parameters

      • feeds: Feeds

      Returns Output | Output[]

    • A lazy run: one iterator (a one-input Pipeline), or an object of iterators keyed by input name, of { value, index } events. Returns a generator of rows, the same rows a batch call gives; nothing is read before the first next().

      Parameters

      • feeds: Iterator<unknown, any, any> | Record<string, Iterator<unknown, any, any>>

      Returns Generator<PipelineRow, void, undefined>

    Index
    alignOutputs: boolean
    inputs: Node[]
    maxPending: number
    outputs: Node[]
    • The Pipeline's save file: JSON text, or a Uint8Array for "cbor". It holds the description (toJSON()) with "state": null: a Pipeline keeps no streaming state between calls. loads gives back a Pipeline. To keep state, save a live session. Python's Pipeline.dumps.

      Parameters

      • Optionalformat: "json" | "cbor"

      Returns string | Uint8Array<ArrayBufferLike>

    • Writes dumps() to path (Node): CBOR for a .cbor path, else JSON.

      Parameters

      • path: string

      Returns Promise<void>

    • The same description object as toJSON().

      Returns Record<string, unknown>

    • The description of this pipeline as a plain object, as Python's to_dict() gives it: its inputs, nodes with their settings, outputs, align_outputs and max_pending. JSON.stringify(pipeline) is its JSON text, which Pipeline.fromJSON (or Python's Pipeline.from_json) rebuilds. JSON.stringify writes a setting that is not finite as null; toJSONText keeps it.

      Returns Record<string, unknown>

    • The JSON text Python's to_json(indent) writes (one shared C++ writer), with a setting that is not finite as NaN, Infinity or -Infinity. indent null writes one line.

      Parameters

      • Optionalindent: number | null

      Returns string