Skip to main content

KeyedVariable

HashMap-backed reference-data store. Maintains a mutable key→value map updated from a changelog stream and answers point-in-time lookup queries.

Ports

PortDirectionTypeDescription
i1dataVectorNumberData [key, value]Updates map: map[key] = value; NaN value deletes the key
c1controlNumberDataKey to look up; emits result on o1
c2controlNumberDataHeartbeat — advances the timeline without changing state
o1outputBooleanData or NumberDataResult of the lookup (type depends on mode)

Properties

PropertyTypeDefaultDescription
idstringOperator identifier
modestring"exists"Output type: "exists" (boolean) or "lookup" (numeric value)
default_valuenumber0.0Returned in lookup mode when the key is absent

Processing Order (same timestamp)

  1. c2 advances heartbeat_time
  2. i1 updates the HashMap
  3. c1 queries are resolved against the updated state