SemSpace: A Fields for Concepts.
More...
#include <sem_space.h>
|
| | SemSpace (pBaseAPI api) |
| | Bop: Start the SemSpace.
|
| |
| virtual StatusCode | start () |
| |
| virtual pChar const | id () |
| |
| | 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 SemSpace).
|
| |
|
|
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.
|
| |
SemSpace: A Fields for Concepts.
◆ SemSpace()
| jazz_models::SemSpace::SemSpace |
( |
pBaseAPI |
api | ) |
|
Bop: Start the SemSpace.
- Parameters
-
| api | A pointer to a BaseAPI that provides access to containers. |
◆ start()
Starts the SemSpace service
- Returns
- SERVICE_NO_ERROR if successful, an error code otherwise.
Reimplemented from jazz_bebop::Space.
◆ id()
| pChar const jazz_models::SemSpace::id |
( |
| ) |
|
|
virtual |
Return object ID.
- Returns
- A string identifying the object that is especially useful to track uplifts and versions.
Reimplemented from jazz_elements::Service.
The documentation for this class was generated from the following files: