#include <timeseries.h>
Public Methods | |
virtual void | process (T const &) |
void | add (oid_t oid, T const &data) |
void | select (oid_t oid, time_t from, time_t till) |
time_t | getFirstTime (oid_t oid) |
time_t | getLastTime (oid_t oid) |
size_t | getNumberOfElements (oid_t oid) |
size_t | getInterval (oid_t oid, time_t from, time_t till, T *buf, size_t bufSize) |
bool | getElement (oid_t oid, T &elem, time_t t) |
size_t | getFirstInterval (oid_t oid, time_t till, T *buf, size_t bufSize) |
size_t | getLastInterval (oid_t oid, time_t from, T *buf, size_t bufSize) |
bool | hasElement (oid_t oid, time_t t) |
dbTimeSeriesProcessor (dbDatabase &database, int minElementsInBlock=100, int maxElementsInBlock=100, time_t maxBlockTimeInterval=0) | |
int | remove (oid_t oid, time_t from, time_t till) |
int | _openIteratorCursor (dbCursor< dbTimeSeriesBlock< T > > &cursor, oid_t oid, time_t from, time_t till) |
time_t time()
method
|
TimeSeries processor constructor
|
|
This method should be actually private but since there is no portable way of declaration of friend templates classes recognized by all C++ compiler, it is made public. Do not use this method yourself. |
|
Add new element
|
|
Get time series element with specified time
|
|
Select first N elements of times series with timestamp less than or equal to specified
|
|
Get the time of the first element in time series
|
|
Select elements belonging to the specified interval
|
|
Select last N elements of times series with timestamp greater than or equal to specified
|
|
Get the time of the last element in time series
|
|
Get number of elements in time series.
|
|
Check if there is element for specified data in time series
|
|
Virtual method for processing elements, Should be redefinedin derived class.
|
|
Remove elements for the sepcified period
|
|
Process elements in the block belonging to the specified range
|