Package com.hazelcast.jet.datamodel
Class WindowResult<R>
java.lang.Object
com.hazelcast.jet.datamodel.WindowResult<R>
- Type Parameters:
R
- type of aggregated result
- Direct Known Subclasses:
KeyedWindowResult
Holds the result of an aggregate operation performed over a time
window.
- Since:
- Jet 3.0
-
Constructor Summary
ConstructorDescriptionWindowResult
(long start, long end, R result) Constructs a window result that is not early.WindowResult
(long start, long end, R result, boolean isEarly) -
Method Summary
Modifier and TypeMethodDescriptionlong
end()
Returns the ending timestamp of the window.boolean
int
hashCode()
boolean
isEarly()
Returns whether this is an early window result, to be followed by the final one.result()
Returns the aggregated result.long
start()
Returns the starting timestamp of the window.toString()
-
Constructor Details
-
WindowResult
- Parameters:
start
- start time of the windowend
- end time of the windowresult
- result of aggregationisEarly
- whether this is an early result, to be followed by the final one
-
WindowResult
Constructs a window result that is not early.- Parameters:
start
- start time of the windowend
- end time of the windowresult
- result of aggregation
-
-
Method Details
-
start
public long start()Returns the starting timestamp of the window. -
end
public long end()Returns the ending timestamp of the window. -
result
Returns the aggregated result. -
isEarly
public boolean isEarly()Returns whether this is an early window result, to be followed by the final one. -
equals
-
hashCode
public int hashCode() -
toString
-