OoOJoin  0.0.1
The next generation of out-of-order join operator
AbstractDataLoader.h
Go to the documentation of this file.
1 
2 //
3 // Created by tony on 29/12/22.
4 //
5 
6 #ifndef _INCLUDE_TESTBENCH_ABSTRACTDATALOADER_H_
7 #define _INCLUDE_TESTBENCH_ABSTRACTDATALOADER_H_
8 #include <Utils/ConfigMap.hpp>
9 #include <Common/Tuples.h>
10 #include <assert.h>
11 #include <Utils/IntelliLog.h>
12 using namespace INTELLI;
13 #define DATA_INFO INTELLI_INFO
14 #define DATA_ERROR INTELLI_ERROR
15 #define DATA_WARNNING INTELLI_WARNING
16 namespace OoOJoin {
17 
40  public:
42  ~AbstractDataLoader() {}
48  virtual bool setConfig(ConfigMapPtr cfg) {
49  assert(cfg);
50  return true;
51  }
57  virtual bool setModConfig(ConfigMapPtr cfg) {
58  assert(cfg);
59  return true;
60  }
65  virtual vector<TrackTuplePtr> getTupleVectorS() {
66 
67  vector<TrackTuplePtr> ru;
68  return ru;
69 
70  }
75  virtual vector<TrackTuplePtr> getTupleVectorR() {
76  vector<TrackTuplePtr> ru;
77  return ru;
78 
79  }
80 };
81 
88 typedef std::shared_ptr<class AbstractDataLoader> AbstractDataLoaderPtr;
94 #define newAbstractDataLoader std::make_shared<OoOJoin::AbstractDataLoader>
101 }
102 #endif //INTELLISTREAM_INCLUDE_TESTBENCH_ABSTRACTDATALOADER_H_
The abstract class of dataloader.
Definition: AbstractDataLoader.h:39
virtual bool setModConfig(ConfigMapPtr cfg)
Set the modification config map related to this loader.
Definition: AbstractDataLoader.h:57
virtual vector< TrackTuplePtr > getTupleVectorR()
get the vector of R tuple
Definition: AbstractDataLoader.h:75
virtual bool setConfig(ConfigMapPtr cfg)
Set the GLOBAL config map related to this loader.
Definition: AbstractDataLoader.h:48
virtual vector< TrackTuplePtr > getTupleVectorS()
get the vector of s tuple
Definition: AbstractDataLoader.h:65
std::shared_ptr< class AbstractDataLoader > AbstractDataLoaderPtr
The class to describe a shared pointer to AbstractDataLoader.
Definition: AbstractDataLoader.h:88
std::shared_ptr< ConfigMap > ConfigMapPtr
The class to describe a shared pointer to ConfigMap.
Definition: ConfigMap.hpp:356
Definition: OperatorTable.cpp:7