Skip to main content

MovingKeyCount

For each incoming key value, counts how many times that key appeared in the last window_size messages (sliding window).

  • Input port i1: NumberData — key value
  • Output port o1: NumberData — count of this key in the current window

Properties

PropertyTypeDescription
idstringOperator identifier
window_sizeinteger ≥ 1Sliding window size

Use Case

Pre-filter for HAVING MOVING_COUNT(N) > threshold before a KeyedPipeline, so only active (frequently-seen) keys pass through.