Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
VOLK_StoreInt Struct Reference

Store interface. More...

#include <store_interface.h>

Collaboration diagram for VOLK_StoreInt:

Data Fields

char name [16]
 Store type name.
VOLK_StoreFeature features
 Feature flags.
store_setup_fn_t setup_fn
 Called before store_new_fn_t.
store_new_fn_t new_fn
 Create a new store instance.
store_free_fn_t free_fn
 Free the store.
store_size_fn_t size_fn
 Number of triples in the store.
store_id_fn_t id_fn
 Get store ID.
store_txn_begin_fn_t txn_begin_fn
 Begin transaction.
store_txn_commit_fn_t txn_commit_fn
 Commit transaction.
store_txn_abort_fn_t txn_abort_fn
 Abort transaction.
store_update_ctx_fn_t update_ctx_fn
store_add_init_fn_t add_init_fn
 Initialize add iteration.
store_add_iter_fn_t add_iter_fn
 Add one triple.
store_add_abort_fn_t add_abort_fn
store_add_done_fn_t add_done_fn
 Complete the add process.
store_add_term_fn_t add_term_fn
store_lookup_fn_t lookup_fn
 Look up triples by pattern. 
iter_next_fn_t lu_next_fn
 Advance the lookup iterator.
iter_free_fn_t lu_free_fn
 Free the lookup iterator.
iter_txn_fn_t iter_txn_fn
 Get iterator's transaction.
store_remove_fn_t remove_fn
 Remove triples by pattern.
store_ctx_list_fn_t ctx_list_fn

Detailed Description

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.

Field Documentation

◆ name

char VOLK_StoreInt::name[16]

Store type name.

Definition at line 343 of file store_interface.h.

◆ features

VOLK_StoreFeature VOLK_StoreInt::features

Feature flags.

Definition at line 344 of file store_interface.h.

◆ setup_fn

store_setup_fn_t VOLK_StoreInt::setup_fn

Called before store_new_fn_t.

Definition at line 347 of file store_interface.h.

◆ new_fn

store_new_fn_t VOLK_StoreInt::new_fn

Create a new store instance.

Definition at line 348 of file store_interface.h.

◆ free_fn

store_free_fn_t VOLK_StoreInt::free_fn

Free the store.

Definition at line 349 of file store_interface.h.

◆ size_fn

store_size_fn_t VOLK_StoreInt::size_fn

Number of triples in the store.

Definition at line 352 of file store_interface.h.

◆ id_fn

store_id_fn_t VOLK_StoreInt::id_fn

Get store ID.

Definition at line 353 of file store_interface.h.

◆ txn_begin_fn

store_txn_begin_fn_t VOLK_StoreInt::txn_begin_fn

Begin transaction.

Definition at line 356 of file store_interface.h.

◆ txn_commit_fn

store_txn_commit_fn_t VOLK_StoreInt::txn_commit_fn

Commit transaction.

Definition at line 357 of file store_interface.h.

◆ txn_abort_fn

store_txn_abort_fn_t VOLK_StoreInt::txn_abort_fn

Abort transaction.

Definition at line 358 of file store_interface.h.

◆ update_ctx_fn

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.

◆ add_init_fn

store_add_init_fn_t VOLK_StoreInt::add_init_fn

Initialize add iteration.

Definition at line 367 of file store_interface.h.

◆ add_iter_fn

store_add_iter_fn_t VOLK_StoreInt::add_iter_fn

Add one triple.

Definition at line 368 of file store_interface.h.

◆ add_abort_fn

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.

◆ add_done_fn

store_add_done_fn_t VOLK_StoreInt::add_done_fn

Complete the add process.

Definition at line 374 of file store_interface.h.

◆ add_term_fn

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.

◆ lookup_fn

store_lookup_fn_t VOLK_StoreInt::lookup_fn

Look up triples by pattern. 

Definition at line 381 of file store_interface.h.

◆ lu_next_fn

iter_next_fn_t VOLK_StoreInt::lu_next_fn

Advance the lookup iterator.

Definition at line 383 of file store_interface.h.

◆ lu_free_fn

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

iter_txn_fn_t VOLK_StoreInt::iter_txn_fn

Get iterator's transaction.

Definition at line 385 of file store_interface.h.

◆ remove_fn

store_remove_fn_t VOLK_StoreInt::remove_fn

Remove triples by pattern.

Definition at line 388 of file store_interface.h.

◆ ctx_list_fn

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.


The documentation for this struct was generated from the following file: