SemSpaces: A Fields for Concepts.
More...
#include <sem_spaces.h>
|
| SemSpaces (pBaseAPI api) |
| Bop: Start the SemSpaces.
|
|
virtual StatusCode | start () |
|
virtual pChar const | id () |
|
| Fields (pBaseAPI api) |
| Bop: Start the Fields.
|
|
| Space (pBaseAPI api, pName a_name) |
| Bop: Create the Space.
|
|
virtual StatusCode | shut_down () |
|
virtual StatusCode | load_meta () |
| Load the metadata of the Space.
|
|
virtual StatusCode | save_meta () |
| Save the metadata of the Space.
|
|
virtual RowNumber | num_rows () |
| Return the number of rows in the Space.
|
|
virtual void * | get_index_data (RowNumber row) |
| Get a pointer to the data of the index of a given row.
|
|
virtual int | num_cols () |
| Get the number of columns in the Space.
|
|
virtual pName | col_name (int col) |
| Get the name of a column.
|
|
virtual int | col_index (pName name) |
| Get the index of a column.
|
|
virtual pLocator | locator (RowNumber row, int col, int &index) |
| Get the location of a cell as a Locator.
|
|
virtual pRowSelection | where (pChar query) |
| Get a RowSelection from a query.
|
|
virtual pColSelection | select (pChar query) |
| Get a ColSelection from a query.
|
|
virtual pCaster | as (pChar query) |
| Get the appropriate Caster from the AS clause of a query.
|
|
virtual bool | register_caster (pCaster cast) |
| Register a Caster descendant to make it available in queries.
|
|
virtual StatusCode | get_row (pTransaction &p_txn, RowNumber row, pColSelection cols=nullptr, pCaster cast=nullptr) |
| Get a row from the Space as a Tuple.
|
|
| Service (pLogger a_logger, pConfigFile a_config) |
|
void | log (int loglevel, const char *message) |
|
void | log_printf (int loglevel, const char *fmt,...) |
|
bool | get_conf_key (const char *key, int &value) |
|
bool | get_conf_key (const char *key, double &value) |
|
bool | get_conf_key (const char *key, std::string &value) |
|
|
Name | storage_ent |
| The name of the storage entity (Typically an lmdb database with the metadata of all SemSpaces).
|
|
|
pLogger | p_log |
| The logger.
|
|
pConfigFile | p_conf |
| The configuration file.
|
|
char | storage_base [SHORT_NAME_SIZE] |
| The base name of the storage container.
|
|
Name | name |
| The name of the Space.
|
|
pBaseAPI | p_api |
| A pointer to the BaseAPI that provides access to containers.
|
|
Casters | casters |
| A map of all the available Casters.
|
|
SemSpaces: A Fields for Concepts.
◆ SemSpaces()
jazz_models::SemSpaces::SemSpaces |
( |
pBaseAPI |
api | ) |
|
Bop: Start the SemSpaces.
- Parameters
-
api | A pointer to a BaseAPI that provides access to containers. |
◆ start()
◆ id()
pChar const jazz_models::SemSpaces::id |
( |
| ) |
|
|
virtual |
Return object ID.
- Returns
- A string identifying the object that is especially useful to track uplifts and versions.
Reimplemented from jazz_bebop::Fields.
The documentation for this class was generated from the following files: