• Used to declare the need for parameters such as counters, windowing context, state, etc. that do not have to be provided externally (such as side inputs).

    This can be useful to bind the context of a parallel operation outside of its application (such as map or pardo).

    Type Parameters

    • ContextT

    • T extends DoFn<unknown, unknown, ContextT> | ((input: unknown, context: ContextT) => unknown)

    Parameters

    • fn: T
    • contextSpec: ContextT

    Returns T

Generated using TypeDoc