iinq.c
Go to the documentation of this file.
78 error = ion_master_table_create_dictionary(&handler, &dictionary, key_type, key_size, value_size, -1);
Definition: kv_system.h:160
enum ION_KEY_TYPE ion_key_type_t
This is the available key types for ION_DB. All types will be based on system defines.
This code contains definitions for iinq functions.
ion_err_t ion_master_table_create_dictionary(ion_dictionary_handler_t *handler, ion_dictionary_t *dictionary, ion_key_type_t key_type, ion_key_size_t key_size, ion_value_size_t value_size, ion_dictionary_size_t dictionary_size)
Creates a dictionary through use of the master table.
Definition: ion_master_table.c:350
unsigned int ion_dictionary_id_t
A type used to identify dictionaries, specifically in the master table.
Definition: dictionary_types.h:51
Definition: kv_system.h:188
ion_status_t dictionary_update(ion_dictionary_t *dictionary, ion_key_t key, ion_value_t value)
Update all records with a given key.
Definition: dictionary.c:169
ion_status_t dictionary_delete(ion_dictionary_t *dictionary, ion_key_t key)
Delete a value given a key.
Definition: dictionary.c:199
ion_status_t dictionary_insert(ion_dictionary_t *dictionary, ion_key_t key, ion_value_t value)
Insert a value into a dictionary.
Definition: dictionary.c:151
ion_status_t iinq_insert(char *schema_file_name, ion_key_t key, ion_value_t value)
Definition: iinq.c:156
Definition: kv_system.h:209
A dictionary contains information regarding an instance of the storage element and the associated han...
Definition: dictionary_types.h:273
Definition: kv_system.h:185
ion_err_t ion_close_dictionary(ion_dictionary_t *dictionary)
Closes a given dictionary.
Definition: ion_master_table.c:486
ion_status_t iinq_update(char *schema_file_name, ion_key_t key, ion_value_t value)
Definition: iinq.c:186
ion_err_t dictionary_delete_dictionary(ion_dictionary_t *dictionary)
Destroys dictionary.
Definition: dictionary.c:178
void bpptree_init(ion_dictionary_handler_t *handler)
Registers a specific handler for a dictionary instance.
Definition: bpp_tree_handler.c:711
Definition: kv_system.h:197
ion_err_t ion_open_dictionary(ion_dictionary_handler_t *handler, ion_dictionary_t *dictionary, ion_dictionary_id_t id)
Finds the target dictionary and opens it.
Definition: ion_master_table.c:463
Definition: kv_system.h:182
ion_err_t iinq_create_source(char *schema_file_name, ion_key_type_t key_type, ion_key_size_t key_size, ion_value_size_t value_size)
Definition: iinq.c:42
ion_err_t iinq_open_source(char *schema_file_name, ion_dictionary_t *dictionary, ion_dictionary_handler_t *handler)
Definition: iinq.c:106
A dictionary_handler is responsible for dealing with the specific interface for an underlying diction...
Definition: dictionary_types.h:207
A status object that describes the result of a dictionary operation.
Definition: kv_system.h:290