Package com.hazelcast.jet.datamodel
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 keyR
- type of the aggregated result
- All Implemented Interfaces:
Map.Entry<K,
R>
Holds the result of a group-and-aggregate operation performed over a
time window.
- Since:
- Jet 3.0
-
Constructor Summary
ConstructorDescriptionKeyedWindowResult
(long start, long end, K key, R result) Constructs a keyed window result that is not early.KeyedWindowResult
(long start, long end, K key, R result, boolean isEarly) -
Method Summary
Methods inherited from class com.hazelcast.jet.datamodel.WindowResult
end, isEarly, result, start
-
Constructor Details
-
KeyedWindowResult
- Parameters:
start
- start time of the windowend
- end time of the windowkey
- grouping keyresult
- result of aggregationisEarly
- whether this is an early result, to be followed by the final one
-
KeyedWindowResult
Constructs a keyed window result that is not early.- Parameters:
start
- start time of the windowend
- end time of the windowkey
- grouping keyresult
- result of aggregation
-
-
Method Details
-
key
Returns the grouping key. -
getKey
Alias forkey
, implementsMap.Entry
. -
getValue
Alias forWindowResult.result()
, implementsMap.Entry
. -
setValue
ImplementsMap.Entry
, throwsUnsupportedOperationException
. -
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classWindowResult<R>
-