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

    Interface Datum

    Input datum for sink operations. Provides access to message data, metadata, and unique ID.

    interface Datum {
        id: string;
        keys: string[];
        getEventtime(): Date;
        getHeaders(): Record<string, string>;
        getValue(): Buffer;
        getWatermark(): Date;
        systemMetadata(): sink.SystemMetadata;
        userMetadata(): sink.UserMetadata;
    }
    Index

    Properties

    id: string

    Unique identifier for the message. Used for tracking and responding to individual messages.

    keys: string[]

    Set of keys in the (key, value) terminology of map/reduce paradigm. Used for routing and partitioning messages.

    Methods

    • Get the event time of the message.

      Returns Date

      The event time as a Date

    • Get the message headers.

      Returns Record<string, string>

      A record of header key-value pairs

    • Get the watermark timestamp.

      Returns Date

      The watermark as a Date