7 #ifndef _JOINPROCESSOR_ABSTRACTLAZYJP_H_
8 #define _JOINPROCESSOR_ABSTRACTLAZYJP_H_
9 #include <JoinProcessor/AbstractJP.h>
10 #include <JoinAlgo/JoinAlgoTable.h>
52 typedef std::shared_ptr<AbstractLazyJP> AbstractLazyJPPtr;
53 #define newAbstractLazyJP() make_shared<AbstractLazyJP>()
88 bool largerThanMe(
size_t timeDivSys);
89 bool smallerThanMe(
size_t timeDivSys);
108 virtual void init(
size_t sLen,
size_t rLen,
size_t _sysId) {
127 tsBegin = sysId * slideLenGlobal;
128 tsEnd = tsBegin + windowLenGlobal;
129 tsOverlap = tsEnd - slideLenGlobal;
The basic class of join processor.
Definition: AbstractJP.h:38
virtual void init(size_t sLen, size_t rLen, size_t _sysId)
init the join processor with buffer/queue length and id
Definition: AbstractJP.h:119
void setGlobalWindow(size_t wlen, size_t sli)
set the window parameters of global window
Definition: AbstractJP.h:153
The basic class of lazy join processor.
Definition: AbstractLazyJP.h:54
C20Buffer< TuplePtr > windowS
non-overlapping area of window S
Definition: AbstractLazyJP.h:59
C20Buffer< TuplePtr > windowROverLap
Overlapping area of window R, with 'previous' window.
Definition: AbstractLazyJP.h:71
virtual void init(size_t sLen, size_t rLen, size_t _sysId)
init the join processor with buffer/queue length and id
Definition: AbstractLazyJP.h:108
C20Buffer< TuplePtr > windowSOverLap
Overlapping area of window S, with 'previous' window.
Definition: AbstractLazyJP.h:67
void moveStoBuffer()
move the S from the input queue to the window buffer
virtual void inlineMain()
The 'main' function of AbstractP.
void moveRtoBuffer()
move the R from the input queue to the window buffer
void setLazyWindow(size_t sli, size_t wlen, size_t per)
set the parameters of lazy window
Definition: AbstractLazyJP.h:122
C20Buffer< TuplePtr > windowR
non-overlapping area of window R
Definition: AbstractLazyJP.h:63
std::shared_ptr< class Tuple > TuplePtr
The class to describe a shared pointer to Tuple.
Definition: Types.h:150
lwj_status_t
The status of lazy join processor.
Definition: AbstractLazyJP.h:32
Definition: DatasetTool.h:10
@ LWJ_COLLECTING
Definition: AbstractLazyJP.h:40
@ LWJ_IDLE
Definition: AbstractLazyJP.h:36
@ LWJ_PROCESSING
Definition: AbstractLazyJP.h:44