The basic class of join processor.  
 More...
#include <JoinProcessor/AbstractJP.h>
 | 
| 
void  | sendResponseCmd (join_cmd_t cmd) | 
|   | 
| 
void  | sendAck () | 
|   | 
| bool  | testCmd (join_cmd_t cmd) | 
|   | To test if a cmd is remained in queue and in desired cmd.  More...
  | 
|   | 
| virtual void  | inlineMain () | 
|   | The 'main' function of AbstractP.  More...
  | 
|   | 
| size_t  | oldestWindowBelong (size_t ts) | 
|   | To get the possible oldest window a time stamp belongs to.  More...
  | 
|   | 
 | 
| 
TuplePtrQueue  | TuplePtrQueueInS | 
|   | 
| 
TuplePtrQueue  | TuplePtrQueueInR | 
|   | 
| 
CmdQueuePtr  | cmdQueueIn | 
|   | 
| 
CmdQueuePtr  | cmdQueueOut | 
|   | 
| 
size_t  | sysId | 
|   | 
| struct timeval  | timeSys | 
|   | 
| 
bool  | timeBased = false | 
|   | 
| 
size_t  | windowLen = 0 | 
|   | 
| 
size_t  | windowLenGlobal = 0 | 
|   | 
| 
size_t  | slideLenGlobal = 0 | 
|   | 
| 
size_t  | joinedResult = 0 | 
|   | 
| 
JoinAlgoTablePtr  | myAlgo | 
|   | 
| 
std::shared_ptr< std::thread >  | threadPtr | 
|   | 
The basic class of join processor. 
- Note
 - first init the JP before startThread 
 
 
◆ feedTupleR()
  
  
      
        
          | virtual void INTELLI::AbstractJP::feedTupleR  | 
          ( | 
          TuplePtr  | 
          tr | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
feed a tuple r into the r input queue 
- Parameters
 - 
  
  
 
 
 
◆ feedTupleS()
  
  
      
        
          | virtual void INTELLI::AbstractJP::feedTupleS  | 
          ( | 
          TuplePtr  | 
          ts | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
feed a tuple s into the s input queue 
- Parameters
 - 
  
  
 
 
 
◆ getJoinedResult()
  
  
      
        
          | size_t INTELLI::AbstractJP::getJoinedResult  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
get the join results 
- Returns
 - Tuples joined 
 
 
 
◆ getTimeStamp()
  
  
      
        
          | size_t INTELLI::AbstractJP::getTimeStamp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get the time stamp. 
- Returns
 - The time stamp, in TIME_STEP us 
 
 
 
◆ init()
  
  
      
        
          | virtual void INTELLI::AbstractJP::init  | 
          ( | 
          size_t  | 
          sLen,  | 
         
        
           | 
           | 
          size_t  | 
          rLen,  | 
         
        
           | 
           | 
          size_t  | 
          _sysId  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ inlineMain()
  
  
      
        
          | virtual void INTELLI::AbstractJP::inlineMain  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ inputCmd()
  
  
      
        
          | void INTELLI::AbstractJP::inputCmd  | 
          ( | 
          join_cmd_t  | 
          cmd | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
input an outside command 
- Parameters
 - 
  
  
 
 
 
◆ isTimeBased()
  
  
      
        
          | bool INTELLI::AbstractJP::isTimeBased  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
to read the window type 
- Returns
 - wether the slider is time-baesd 
 
 
 
◆ oldestWindowBelong()
  
  
      
        
          | size_t INTELLI::AbstractJP::oldestWindowBelong  | 
          ( | 
          size_t  | 
          ts | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
To get the possible oldest window a time stamp belongs to. 
- Parameters
 - 
  
  
 
- Returns
 - The window number, start from 0 
 
 
 
◆ setCore()
  
  
      
        
          | void INTELLI::AbstractJP::setCore  | 
          ( | 
          int  | 
          id | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
bind to specific core 
- Parameters
 - 
  
  
 
 
 
◆ setGlobalWindow()
  
  
      
        
          | void INTELLI::AbstractJP::setGlobalWindow  | 
          ( | 
          size_t  | 
          wlen,  | 
         
        
           | 
           | 
          size_t  | 
          sli  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
set the window parameters of global window 
- Parameters
 - 
  
    | wlen | window length  | 
    | sli | slide  | 
  
   
 
 
◆ setTimeBased()
  
  
      
        
          | void INTELLI::AbstractJP::setTimeBased  | 
          ( | 
          bool  | 
          ts | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
to configure the window type 
- Parameters
 - 
  
    | ts | wether the slider is time-baesd  | 
  
   
 
 
◆ setTimeVal()
  
  
      
        
          | void INTELLI::AbstractJP::setTimeVal  | 
          ( | 
          struct timeval  | 
          tv | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
set the timeval struct 
- Parameters
 - 
  
  
 
 
 
◆ setWindowLen()
  
  
      
        
          | void INTELLI::AbstractJP::setWindowLen  | 
          ( | 
          size_t  | 
          wl | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
to set the length of window 
- Parameters
 - 
  
  
 
 
 
◆ testCmd()
  
  
      
        
          | bool INTELLI::AbstractJP::testCmd  | 
          ( | 
          join_cmd_t  | 
          cmd | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
To test if a cmd is remained in queue and in desired cmd. 
- Parameters
 - 
  
  
 
- Returns
 - true if such command exists 
 
 
 
◆ waitResponse()
  
  
      
        
          | join_cmd_t INTELLI::AbstractJP::waitResponse  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
wait and return the response of this join processor 
- Returns
 - the response command 
 
 
 
◆ timeSys
  
  
      
        
          | struct timeval INTELLI::AbstractJP::timeSys | 
         
       
   | 
  
protected   | 
  
 
timeval structure from linux, <sys/time.h> 
 
 
The documentation for this class was generated from the following file: