linear_hash_handler.h
Go to the documentation of this file.
void linear_hash_dict_init(ion_dictionary_handler_t *handler)
Registers a linear hash handler to a dictionary instance.
Definition: linear_hash_handler.c:40
ion_status_t linear_hash_dict_insert(ion_dictionary_t *dictionary, ion_key_t key, ion_value_t value)
Inserts a key and value pair into the dictionary.
Definition: linear_hash_handler.c:56
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.
unsigned int ion_dictionary_id_t
A type used to identify dictionaries, specifically in the master table.
Definition: dictionary_types.h:51
unsigned int ion_dictionary_size_t
The implementation specific size of the dictionary.
Definition: kv_system.h:264
Struct containing details for opening a dictionary previously created.
Definition: dictionary_types.h:183
ion_status_t linear_hash_dict_delete(ion_dictionary_t *dictionary, ion_key_t key)
Deletes the key and associated value from the given dictionary instance.
Definition: linear_hash_handler.c:119
ion_err_t linear_hash_close_dictionary(ion_dictionary_t *dictionary)
Definition: linear_hash_handler.c:169
char(* ion_dictionary_compare_t)(ion_key_t, ion_key_t, ion_key_size_t)
Function pointer type for dictionary comparison methods.
Definition: dictionary_types.h:83
A dictionary contains information regarding an instance of the storage element and the associated han...
Definition: dictionary_types.h:273
Header for a linear hash .
ion_err_t linear_hash_delete_dictionary(ion_dictionary_t *dictionary)
Deletes an instance of a dictionary and its associated data.
Definition: linear_hash_handler.c:148
ion_err_t linear_hash_open_dictionary(ion_dictionary_handler_t *handler, ion_dictionary_t *dictionary, ion_dictionary_config_info_t *config, ion_dictionary_compare_t compare)
Definition: linear_hash_handler.c:159
ion_err_t linear_hash_create_dictionary(ion_dictionary_id_t id, ion_key_type_t key_type, ion_key_size_t key_size, ion_value_size_t value_size, ion_dictionary_size_t dictionary_size, ion_dictionary_compare_t compare, ion_dictionary_handler_t *handler, ion_dictionary_t *dictionary)
Creates an instance of a dictionary.
Definition: linear_hash_handler.c:83
ion_err_t linear_hash_destroy_dictionary(ion_dictionary_id_t id)
Cleans up all files created by the dictionary, and frees any allocated memory, for an already closed ...
Definition: linear_hash_handler.c:127
ion_status_t linear_hash_dict_update(ion_dictionary_t *dictionary, ion_key_t key, ion_value_t value)
Updates the value stored at a given key.
Definition: linear_hash_handler.c:74
ion_status_t linear_hash_dict_get(ion_dictionary_t *dictionary, ion_key_t key, ion_value_t value)
Definition: linear_hash_handler.c:65
ion_status_t linear_hash_dict_find(ion_dictionary_t *dictionary)
Definition: linear_hash_handler.c:187
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