The class to describe a simplest window. More...
#include <Common/Window.h>

Public Member Functions | |
| Window () | |
| default creator | |
| Window (tsType ts, tsType te) | |
| vreator with range, call setRange More... | |
| void | setRange (tsType ts, tsType te) |
| To set the range of this window. More... | |
| void | init (size_t sLen, size_t rLen, size_t _sysId) |
| init window with buffer/queue length and id More... | |
| bool | feedTupleS (TrackTuplePtr ts) |
| feed a tuple s into the window More... | |
| bool | feedTupleR (TrackTuplePtr tr) |
| feed a tuple R into the window More... | |
| bool | reset (void) |
| reset the window, clear all tuples More... | |
| tsType | getStart () |
| get the start time of window More... | |
| tsType | getEnd () |
| get the end time of window More... | |
Public Attributes | |
| INTELLI::C20Buffer< OoOJoin::TrackTuplePtr > | windowS |
| INTELLI::C20Buffer< OoOJoin::TrackTuplePtr > | windowR |
Protected Attributes | |
| size_t | windowID = 0 |
| The unique ID in system, used only for multiple window case. | |
| tsType | startTime = 0 |
| The start time (event) of this window. | |
| tsType | endTime = 0 |
| The end time (event) of this window. | |
The class to describe a simplest window.
| OoOJoin::Window::Window | ( | OoOJoin::tsType | ts, |
| OoOJoin::tsType | te | ||
| ) |
vreator with range, call setRange
| ts | The start time |
| te | The end time |
| bool OoOJoin::Window::feedTupleR | ( | OoOJoin::TrackTuplePtr | tr | ) |
feed a tuple R into the window
| tr | The tuple |
| bool OoOJoin::Window::feedTupleS | ( | OoOJoin::TrackTuplePtr | ts | ) |
feed a tuple s into the window
| ts | The tuple |
|
inline |
get the end time of window
|
inline |
get the start time of window
| void OoOJoin::Window::init | ( | size_t | sLen, |
| size_t | rLen, | ||
| size_t | _sysId | ||
| ) |
init window with buffer/queue length and id
| sLen | The length of S queue and/or buffer |
| rLen | The length of S queue and/or buffer |
| _sysId | The system id |
| bool OoOJoin::Window::reset | ( | void | ) |
reset the window, clear all tuples
| void OoOJoin::Window::setRange | ( | OoOJoin::tsType | ts, |
| OoOJoin::tsType | te | ||
| ) |
To set the range of this window.
| ts | The start time |
| te | The end time |