@numaproj/numaflow-js - v0.0.0-alpha.4
    Preparing search index...

    Interface SessionReducer

    Interface that must be implemented for session reduce operations.

    Provides three required methods for:

    • Processing messages in a session
    • Serializing state for checkpointing
    • Merging state from other sessions
    Index

    Properties

    accumulatorFn: AccumulatorFnCallback

    Serialize current state to a Buffer for checkpointing

    mergeAccumulatorFn: MergeAccumulatorFnCallback

    Merge incoming state from another session

    sessionReduceFn: SessionReduceFnCallback

    Main processing function that yields output messages