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:
java.util.Map.Entry<K,R>
public final class KeyedWindowResult<K,R> extends WindowResult<R> implements java.util.Map.Entry<K,R>
Holds the result of a group-and-aggregate operation performed over a time window.- Since:
- Jet 3.0
-
-
Constructor Summary
Constructors Constructor Description KeyedWindowResult(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
K
getKey()
Alias forkey
, implementsMap.Entry
.R
getValue()
Alias forWindowResult.result()
, implementsMap.Entry
.int
hashCode()
K
key()
Returns the grouping key.R
setValue(R value)
ImplementsMap.Entry
, throwsUnsupportedOperationException
.java.lang.String
toString()
-
Methods inherited from class com.hazelcast.jet.datamodel.WindowResult
end, isEarly, result, start
-
-
-
-
Constructor Detail
-
KeyedWindowResult
public KeyedWindowResult(long start, long end, @Nonnull K key, @Nonnull R result, boolean isEarly)
- 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
-
-
Method Detail
-
key
@Nonnull public K key()
Returns the grouping key.
-
getValue
public R getValue()
Alias forWindowResult.result()
, implementsMap.Entry
.
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Map.Entry<K,R>
- Overrides:
equals
in classWindowResult<R>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map.Entry<K,R>
- Overrides:
hashCode
in classWindowResult<R>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classWindowResult<R>
-
-