|
| | Space (pBaseAPI api, pName a_name) |
| | Bop: Create the Space.
|
| |
| virtual StatusCode | start () |
| |
| 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) |
| |
| virtual pChar const | id () |
| |
| 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) |
| |
Space: The abstract space.
This is the abstract parent of DataSpaces, Fields/SemSpaces and Snippet/Concept. A Space is an abstraction over many blocks that provides:
- An abstraction in the form of rows and columns.
- A mechanism to load and update its own metadata in a persisted way.
Through inheritance, it provides su things as:
- Sharding and replication across a cluster.
- A mechanism to load, update, invalidate blocks. This supports continuous update like in time series.
- Indexing by time, key, embedding, etc.
The class Space is mostly empty. It provides the parent virtual interface and the parents of all the auxiliary classes used to access data.
- See also
- DataSpaces, Fields, jazz_models::SemSpaces, Snippet, jazz_models::Concept