|
|
| datastore (const access_mode &mode) |
| |
| virtual void | close ()=0 |
| |
| tom::tsdb::sparse_series_sptr | create_sparse_series (const char *name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type) |
| |
| virtual tom::tsdb::sparse_series_sptr | create_sparse_series (const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type) |
| |
| tom::tsdb::time_series_sptr | create_time_series (const char *name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type) |
| |
| virtual tom::tsdb::time_series_sptr | create_time_series (const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type) |
| |
| bool | delete_time_series (const char *name) |
| |
| virtual bool | delete_time_series (const tom::observation &name)=0 |
| |
| virtual tom::tsdb::connection & | get_connection ()=0 |
| |
| virtual const tom::calendars::date_time & | get_create_date_time () const =0 |
| |
|
const datastore_metrics & | get_datastore_metrics () |
| |
| virtual const tom::string & | get_description () const =0 |
| |
| virtual const tom::string & | get_documentation () const =0 |
| |
| const access_mode & | get_mode () const |
| |
| virtual const tom::calendars::date_time & | get_modify_date_time () const =0 |
| |
| virtual const tom::string & | get_name () const =0 |
| |
| tom::tsdb::time_series_sptr | get_time_series (const char *name, bool lazy_eval=false) |
| |
| virtual tom::tsdb::time_series_sptr | get_time_series (const tom::observation &name, bool lazy_eval=false)=0 |
| |
| bool | has_time_series (const char *name) |
| |
| virtual bool | has_time_series (const tom::observation &name)=0 |
| |
| virtual bool | is_open () const =0 |
| |
| tom::tsdb::datastore_match_sptr | regex_name_search (const char *regex) |
| |
| virtual tom::tsdb::datastore_match_sptr | regex_name_search (const tom::observation ®ex)=0 |
| |
| virtual void | save_time_series (const tom::tsdb::time_series &ts, bool overwrite=false)=0 |
| |
| virtual void | set_description (const tom::observation &)=0 |
| |
| virtual void | set_documentation (const tom::observation &)=0 |
| |
|
| logger (const char *domain) |
| |
|
tom::logger & | get_logger () |
| |
|
tom::logger & | get_logger (const char *domain) |
| |
|
|
virtual tom::tsdb::sparse_series_sptr | create_sparse_series (const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &) |
| |
|
virtual tom::tsdb::sparse_series_sptr | create_sparse_series (const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &, bool ignore_same_value, bool ignore_missing_value, void *iter_begin, void *iter_end) |
| |
|
virtual tom::tsdb::time_series_sptr | create_time_series (const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &) |
| |
|
virtual tom::tsdb::time_series_sptr | create_time_series (const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &, tom::calendars::date_int_type first_date, tom::calendars::date_int_type last_date, tom::tsdb::time_series::populate_data_func) |
| |
|
virtual tom::tsdb::time_series_sptr | create_time_series (const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &, tom::calendars::date_int_type start, void *iter_begin, void *iter_end) |
| |
|
virtual const tom::String & | get_attribute (const tom::string &obj_name, const tom::String &att_name)=0 |
| |
|
virtual bool | populate_alias_set (const tom::String &name, alias_set &aliases)=0 |
| |
|
virtual void | populate_datastore_metrics (datastore_metrics &metrics)=0 |
| |
|
virtual void | set_attribute (const tom::string &obj_name, const tom::String &att_name, const tom::String &att_value)=0 |
| |
|
|
static tom::tsdb::sparse_series_sptr | build_sparse_series (datastore &ds, const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type) |
| |
|
static tom::tsdb::sparse_series_sptr | build_sparse_series (datastore &ds, const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &) |
| |
|
static tom::tsdb::sparse_series_sptr | build_sparse_series (datastore &ds, const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &, bool ignore_same_value, bool ignore_missing_value, void *iter_begin, void *iter_end) |
| |
|
static tom::tsdb::time_series_sptr | build_time_series (datastore &ds, const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type) |
| |
|
static tom::tsdb::time_series_sptr | build_time_series (datastore &ds, const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &) |
| |
|
static tom::tsdb::time_series_sptr | build_time_series (datastore &ds, const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &, tom::calendars::date_int_type start, tom::calendars::date_int_type end, tom::tsdb::time_series::populate_data_func) |
| |
|
static tom::tsdb::time_series_sptr | build_time_series (datastore &ds, const tom::observation &name, native_data_type data_t, native_calendar_type calendar_t, aggregation_type, const tom::calendars::date_time &, const tom::calendars::date_time &, tom::calendars::date_int_type start, void *iter_begin, void *iter_end) |
| |
Datastore objects are the meat and potatoes of time-series creation, retrieval, updating, and deletion. All time-series start there life out deep in the bowels of some datastore. Whether creating one for the first time, or retrieving previously created ones, it is easiest to use the datastore object.
datastore objects provide full extended posix regex search capabilities on the datastore. This allows for rich querying of the datastore based on time_series names which typically follow semantics to create naturally grouped objects, e.g., regex_name_search( "IBM\..*" ); would return all objects starting with 'IBM.', e.g., IBM.CLOSE, IBM.OPEN, IBM.LOW, etc... This method returns a datastore_match object which can be used to walk the result set retrieving name, and other meta-data.
| virtual tom::tsdb::datastore_match_sptr tom::tsdb::datastore::regex_name_search |
( |
const tom::observation & |
regex | ) |
|
|
pure virtual |
datastore objects provide full extended posix regex search capabilities on the datastore. This allows for rich querying of the datastore based on time_series names which typically follow semantics to create naturally grouped objects, e.g., regex_name_search( "IBM\..*" ); would return all objects starting with 'IBM.', e.g., IBM.CLOSE, IBM.OPEN, IBM.LOW, etc... This method returns a datastore_match object which can be used to walk the result set retrieving name, and other meta-data.