Class KeyedWindowResult<K,R>

java.lang.Object
com.hazelcast.jet.datamodel.WindowResult<R>
com.hazelcast.jet.datamodel.KeyedWindowResult<K,R>
Type Parameters:
K - type of the grouping key
R - type of the aggregated result
All Implemented Interfaces:
Map.Entry<K,R>

public final class KeyedWindowResult<K,R> extends WindowResult<R> implements Map.Entry<K,R>
Holds the result of a group-and-aggregate operation performed over a time window.
Since:
Jet 3.0
  • Constructor Details

    • KeyedWindowResult

      public KeyedWindowResult(long start, long end, @Nonnull K key, @Nonnull R result, boolean isEarly)
      Parameters:
      start - start time of the window
      end - end time of the window
      key - grouping key
      result - result of aggregation
      isEarly - whether this is an early result, to be followed by the final one
    • KeyedWindowResult

      public KeyedWindowResult(long start, long end, @Nonnull K key, @Nonnull R result)
      Constructs a keyed window result that is not early.
      Parameters:
      start - start time of the window
      end - end time of the window
      key - grouping key
      result - result of aggregation
  • Method Details