AllianceDB  0.0.1
AllianceDB is an open-source suite, including benchmarks and libs for evaluating and improving stream operation algorithms on modern hardwares.
VerifyWS.h
Go to the documentation of this file.
1 
3 //
4 // Created by tony on 18/03/22.
5 //
6 
7 #ifndef _WINDOWSLIDER_VERIFYWS_H_
8 #define _WINDOWSLIDER_VERIFYWS_H_
12 namespace INTELLI {
29 class VerifyWS : public AbstractWS, public AbstractC20Thread {
30  protected:
31  TuplePtrQueue TuplePtrQueueLocalS;
32  TuplePtrQueue TuplePtrQueueLocalR;
33 
34  size_t joinResults;
35  virtual void inlineMain();
46  void expireS(size_t cond);
47  void expireR(size_t cond);
48  public:
52  void reset() {
54  joinResults = 0;
55  }
56  VerifyWS() {
57  reset();
58  nameTag = "VerifyJoin";
59  }
60  ~VerifyWS() {
61 
62  }
68  VerifyWS(size_t sLen, size_t rLen);
79  //get the join result
86  size_t getJoinResult();
87 };
88 }
89 #endif //ALIANCEDB_INCLUDE_WINDOWSLIDER_VERIFYWS_H_
The base class and abstraction of C++20 thread, and it can be derived into other threads.
Definition: AbstractC20Thread.h:28
An abstraction of window slider, also inherited by both eager and lazy.
Definition: AbstractWS.h:41
void reset()
reset everything needed
Definition: AbstractWS.h:137
The single-thread window slider used for verify results of other WS.
Definition: VerifyWS.h:29
size_t getJoinResult()
to get the result of join
void waitAckFromJoinProcessors()
to wait the response of join processors
void reset()
reset everything needed
Definition: VerifyWS.h:52
virtual void inlineMain()
The inline 'main" function of thread, as an interface.
void terminateJoinProcessors()
to terminate the join processors
void initJoinProcessors()
to init the initJoinProcessors
VerifyWS(size_t sLen, size_t rLen)
to init the slider with specific length of queue
void deliverTupleS(TuplePtr ts)
deliver tuple s to join processors
void deliverTupleR(TuplePtr tr)
deliver tuple r to join processors
std::shared_ptr< class Tuple > TuplePtr
The class to describe a shared pointer to Tuple.
Definition: Types.h:150
std::shared_ptr< INTELLI::SPSCQueue< INTELLI::TuplePtr > > TuplePtrQueue
To describe a queue of TuplePtr under SPSCQueue.
Definition: Types.h:228
Definition: DatasetTool.h:10