The class which generates watermark according to lateness of event time. A tuple with event time earlier than max (event time we have seen) - lateness will be discard and trigger a compute. More...
#include <WaterMarker/LatenessWM.h>


Public Member Functions | |
| virtual bool | setConfig (ConfigMapPtr cfg) |
| Set the config map related to this operator. More... | |
| virtual size_t | creatWindow (tsType tBegin, tsType tEnd) |
| creat a window More... | |
| virtual bool | reportTupleS (TrackTuplePtr ts, size_t wid=1) |
| report a tuple s into the watermark generator More... | |
| virtual bool | reportTupleR (TrackTuplePtr tr, size_t wid=1) |
| Report a tuple R into the watermark generator. More... | |
Public Member Functions inherited from OoOJoin::AbstractWaterMarker | |
| void | setErrorBound (double err) |
| Separately set the errorBound. More... | |
| void | syncTimeStruct (struct timeval tv) |
| Synchronize the time structure with outside setting. More... | |
| virtual bool | init (void) |
| init the generator More... | |
| virtual bool | deleteWindow (size_t wid) |
| delete the window and recycle its id More... | |
Protected Member Functions | |
| bool | isReachWMPoint (TrackTuplePtr tp) |
Protected Member Functions inherited from OoOJoin::AbstractWaterMarker | |
| virtual double | estimateError (size_t wid=1) |
| estimate the error of a window More... | |
Protected Attributes | |
| tsType | lateness = 0 |
| The max allowed lateness, internal, in us. | |
| tsType | earlierEmit = 0 |
| The time of earlier emit before reaching window bound, internal, in us. | |
| tsType | windowUpperBound = 0 |
| tsType | maxEventTime = 0 |
Protected Attributes inherited from OoOJoin::AbstractWaterMarker | |
| double | errorBound |
| The assigned error bound, read from configuration. | |
| struct timeval | timeBaseStruct |
| the base structure for time | |
Additional Inherited Members | |
Public Attributes inherited from OoOJoin::AbstractWaterMarker | |
| ConfigMapPtr | config = nullptr |
The class which generates watermark according to lateness of event time. A tuple with event time earlier than max (event time we have seen) - lateness will be discard and trigger a compute.
When assign this final water mark, it "convince' the system that everything whose event time is earlier than window bound, is arrived, so we can provide the final result. The condition is
|
virtual |
creat a window
| tBegin | The begin event time of the window |
| tEnd | The end event time of the window |
Reimplemented from OoOJoin::AbstractWaterMarker.
|
protected |
When assign this final water mark, it asserts that everything earlier than window bound is arrived, so we can provide the final result
|
virtual |
Report a tuple R into the watermark generator.
| tr | The tuple |
| wid | The id of window |
Reimplemented from OoOJoin::AbstractWaterMarker.
|
virtual |
report a tuple s into the watermark generator
| ts | The tuple |
| wid | The id of window |
Reimplemented from OoOJoin::AbstractWaterMarker.
|
virtual |
Set the config map related to this operator.
| cfg | The config map |
Reimplemented from OoOJoin::AbstractWaterMarker.
|
protected |