|
Volksdata 1.0b7
RDF library
|
Store interface. More...
#include <store_interface.h>

Store interface.
New store implementations should define a static structure with the relevant members filled in. Some members are only relevant to certain types of stores and may be set to NULL.
setup_fn may be optionally defined and MUST cause an idempotent action, unless the clear argument is set to true. Callers should check if this member is NULL and if it is not, call it at the beginning of the interaction with the store.
Transaction control members are only applicable to stores with the VOLK_STORE_TXN feature.
Definition at line 341 of file store_interface.h.
| char VOLK_StoreInt::name[16] |
Store type name.
Definition at line 343 of file store_interface.h.
| VOLK_StoreFeature VOLK_StoreInt::features |
Feature flags.
Definition at line 344 of file store_interface.h.
| store_setup_fn_t VOLK_StoreInt::setup_fn |
Called before store_new_fn_t.
Definition at line 347 of file store_interface.h.
| store_new_fn_t VOLK_StoreInt::new_fn |
Create a new store instance.
Definition at line 348 of file store_interface.h.
| store_free_fn_t VOLK_StoreInt::free_fn |
Free the store.
Definition at line 349 of file store_interface.h.
| store_size_fn_t VOLK_StoreInt::size_fn |
Number of triples in the store.
Definition at line 352 of file store_interface.h.
| store_id_fn_t VOLK_StoreInt::id_fn |
Get store ID.
Definition at line 353 of file store_interface.h.
| store_txn_begin_fn_t VOLK_StoreInt::txn_begin_fn |
Begin transaction.
Definition at line 356 of file store_interface.h.
| store_txn_commit_fn_t VOLK_StoreInt::txn_commit_fn |
Commit transaction.
Definition at line 357 of file store_interface.h.
| store_txn_abort_fn_t VOLK_StoreInt::txn_abort_fn |
Abort transaction.
Definition at line 358 of file store_interface.h.
| store_update_ctx_fn_t VOLK_StoreInt::update_ctx_fn |
Update context URI.
Only available in stores with VOLK_STORE_CTX feature. Optional.
Definition at line 361 of file store_interface.h.
| store_add_init_fn_t VOLK_StoreInt::add_init_fn |
Initialize add iteration.
Definition at line 367 of file store_interface.h.
| store_add_iter_fn_t VOLK_StoreInt::add_iter_fn |
Add one triple.
Definition at line 368 of file store_interface.h.
| store_add_abort_fn_t VOLK_StoreInt::add_abort_fn |
Abort (roll back) the add process.
Only available in stores with VOLK_STORE_TXN feature. Optional.
Definition at line 369 of file store_interface.h.
| store_add_done_fn_t VOLK_StoreInt::add_done_fn |
Complete the add process.
Definition at line 374 of file store_interface.h.
| store_add_term_fn_t VOLK_StoreInt::add_term_fn |
Add (index) a term to the store.
Only available in stores with VOLK_STORE_IDX feature. Optional.
Definition at line 375 of file store_interface.h.
| store_lookup_fn_t VOLK_StoreInt::lookup_fn |
Look up triples by pattern.
Definition at line 381 of file store_interface.h.
| iter_next_fn_t VOLK_StoreInt::lu_next_fn |
Advance the lookup iterator.
Definition at line 383 of file store_interface.h.
| iter_free_fn_t VOLK_StoreInt::lu_free_fn |
Free the lookup iterator.
Definition at line 384 of file store_interface.h.
| iter_txn_fn_t VOLK_StoreInt::iter_txn_fn |
Get iterator's transaction.
Definition at line 385 of file store_interface.h.
| store_remove_fn_t VOLK_StoreInt::remove_fn |
Remove triples by pattern.
Definition at line 388 of file store_interface.h.
| store_ctx_list_fn_t VOLK_StoreInt::ctx_list_fn |
Get all context URIs in a store.
Only applicable to stores with VOLK_STORE_CTX feature.
Definition at line 391 of file store_interface.h.