screamer.js
    Preparing search index...

    Interface LiveDriver

    interface LiveDriver {
        "[dispose]"(): void;
        advance(now: number): void;
        dispose(): void;
        dumps(format?: "json" | "cbor"): string | Uint8Array<ArrayBufferLike>;
        flush(): void;
        push(
            name: string,
            index: number,
            value: number | ArrayLike<number> | NdArray,
        ): void;
        pushWide(
            name: string,
            index: number,
            values: ArrayLike<number> | NdArray,
        ): void;
        result(): Output | Output[];
        save(path: string): Promise<void>;
    }
    Index
    • Parameters

      • now: number

      Returns void

    • Frees the session's engine and its operator copies now (else the garbage collector, or the Pipeline's dispose(), does). Idempotent.

      Returns void

    • The session's save file: JSON text, or a Uint8Array for "cbor". Its settings are the Pipeline's description (toJSON()), its state everything the session holds: the operators' and stream nodes' state, the events that wait in a join or a window, the watermarks, and the outputs result() has not returned. loads gives back a live session that continues where this one stopped. Python's session.dumps.

      Parameters

      • Optionalformat: "json" | "cbor"

      Returns string | Uint8Array<ArrayBufferLike>

    • Parameters

      • name: string
      • index: number
      • value: number | ArrayLike<number> | NdArray

      Returns void

    • Parameters

      • name: string
      • index: number
      • values: ArrayLike<number> | NdArray

      Returns void

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

      Parameters

      • path: string

      Returns Promise<void>