The abstraction to describe a watermark generator, providing virtual function of deciding watermark generation.
More...
#include <WaterMarker/AbstractWaterMarker.h>
|
|
double | errorBound |
| | The assigned error bound, read from configuration.
|
| |
|
struct timeval | timeBaseStruct |
| | the base structure for time
|
| |
The abstraction to describe a watermark generator, providing virtual function of deciding watermark generation.
- Todo:
- multi window support is not done yet, left for future, but we do preserve the interfaces
- Note
- require configurations:
- "errorBound" Double The assigned error bound
◆ creatWindow()
creat a window
- Parameters
-
| tBegin | The begin event time of the window |
| tEnd | The end event time of the window |
- Returns
- the id of created window
Reimplemented in OoOJoin::LatenessWM, and OoOJoin::ArrivalWM.
◆ deleteWindow()
| bool OoOJoin::AbstractWaterMarker::deleteWindow |
( |
size_t |
wid | ) |
|
|
virtual |
delete the window and recycle its id
- Returns
- bool, whether the window is released
◆ estimateError()
| double OoOJoin::AbstractWaterMarker::estimateError |
( |
size_t |
wid = 1 | ) |
|
|
protectedvirtual |
estimate the error of a window
- Parameters
-
- Returns
- The estimated error
◆ init()
| bool OoOJoin::AbstractWaterMarker::init |
( |
void |
| ) |
|
|
virtual |
init the generator
- Returns
- bool whether the generator is successfully inited
- Note
- call before using
◆ reportTupleR()
Report a tuple R into the watermark generator.
- Parameters
-
| tr | The tuple |
| wid | The id of window |
- Returns
- bool, bool, whether generate watermark after receiving this Tuple
Reimplemented in OoOJoin::LatenessWM, and OoOJoin::ArrivalWM.
◆ reportTupleS()
report a tuple s into the watermark generator
- Parameters
-
| ts | The tuple |
| wid | The id of window |
- Returns
- bool, whether generate watermark after receiving this Tuple
Reimplemented in OoOJoin::LatenessWM, and OoOJoin::ArrivalWM.
◆ setConfig()
◆ setErrorBound()
| void OoOJoin::AbstractWaterMarker::setErrorBound |
( |
double |
err | ) |
|
|
inline |
Separately set the errorBound.
- Parameters
-
◆ syncTimeStruct()
| void OoOJoin::AbstractWaterMarker::syncTimeStruct |
( |
struct timeval |
tv | ) |
|
|
inline |
Synchronize the time structure with outside setting.
- Parameters
-
| tv | The outside time structure |
The documentation for this class was generated from the following files: