OoOJoin  0.0.1
The next generation of out-of-order join operator
LatenessWM.h
Go to the documentation of this file.
1 
2 //
3 // Created by tony on 25/11/22.
4 //
5 
6 #ifndef _INCLUDE_WATERMARKER_LATENESSWM_H_
7 #define _INCLUDE_WATERMARKER_LATENESSWM_H_
9 namespace OoOJoin {
26  protected:
35 
40  tsType maxEventTime = 0;
42  public:
43  LatenessWM() {}
44  ~LatenessWM() {}
45 
51  virtual bool setConfig(ConfigMapPtr cfg);
58  virtual size_t creatWindow(tsType tBegin, tsType tEnd);
65  virtual bool reportTupleS(TrackTuplePtr ts, size_t wid = 1);
66 
73  virtual bool reportTupleR(TrackTuplePtr tr, size_t wid = 1);
74 };
79 typedef std::shared_ptr<class LatenessWM> LatenessWMPtr;
84 #define newLatenessWM std::make_shared<OoOJoin::LatenessWM>
85 }
86 #endif //INTELLISTREAM_INCLUDE_WATERMARKER_PERIODICALWM_H_
The abstraction to describe a watermark generator, providing virtual function of deciding watermark g...
Definition: AbstractWaterMarker.h:30
The class which generates watermark according to lateness of event time. A tuple with event time earl...
Definition: LatenessWM.h:25
tsType lateness
The max allowed lateness, internal, in us.
Definition: LatenessWM.h:30
tsType earlierEmit
The time of earlier emit before reaching window bound, internal, in us.
Definition: LatenessWM.h:34
virtual bool setConfig(ConfigMapPtr cfg)
Set the config map related to this operator.
Definition: LatenessWM.cpp:7
virtual bool reportTupleS(TrackTuplePtr ts, size_t wid=1)
report a tuple s into the watermark generator
Definition: LatenessWM.cpp:41
bool isReachWMPoint(TrackTuplePtr tp)
Definition: LatenessWM.cpp:25
virtual size_t creatWindow(tsType tBegin, tsType tEnd)
creat a window
Definition: LatenessWM.cpp:17
tsType windowUpperBound
Definition: LatenessWM.h:39
virtual bool reportTupleR(TrackTuplePtr tr, size_t wid=1)
Report a tuple R into the watermark generator.
Definition: LatenessWM.cpp:49
uint64_t tsType
Definition: Tuples.h:20
std::shared_ptr< class TrackTuple > TrackTuplePtr
The class to describe a shared pointer to TrackTuple.
Definition: Tuples.h:171
std::shared_ptr< ConfigMap > ConfigMapPtr
The class to describe a shared pointer to ConfigMap.
Definition: ConfigMap.hpp:356
Definition: OperatorTable.cpp:7
std::shared_ptr< class LatenessWM > LatenessWMPtr
The class to describe a shared pointer to PeriodicalWM.
Definition: LatenessWM.h:79