open_address_file_hash.h
Go to the documentation of this file.
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.
Struct used to maintain an instance of an in memory hashmap.
Definition: open_address_hash.h:70
ion_err_t oafh_find_item_loc(ion_file_hashmap_t *hash_map, ion_key_t key, int *location)
Locates item in map.
Definition: open_address_file_hash.c:279
unsigned int ion_dictionary_id_t
A type used to identify dictionaries, specifically in the master table.
Definition: dictionary_types.h:51
Struct containing details for opening a dictionary previously created.
Definition: dictionary_types.h:183
ion_err_t oafh_close(ion_file_hashmap_t *hash_map)
This function closes a hashmap dictionary.
Definition: open_address_file_hash.c:48
ion_err_t oafh_open(ion_dictionary_config_info_t config, ion_file_hashmap_t *hash_map)
This function opens a hashmap dictionary.
int(* compute_hash)(ion_file_hashmap_t *, ion_key_t, int)
Definition: open_address_file_hash.h:75
ion_status_t oafh_delete(ion_file_hashmap_t *hash_map, ion_key_t key)
Deletes item from map.
Definition: open_address_file_hash.c:339
ion_status_t oafh_insert(ion_file_hashmap_t *hash_map, ion_key_t key, ion_value_t value)
Insert record into hashmap.
Definition: open_address_file_hash.c:186
This file includes common components for oadictionary and oahash.
ion_status_t oafh_get(ion_file_hashmap_t *hash_map, ion_key_t key, ion_value_t value)
Locates the record if it exists.
Definition: open_address_file_hash.c:381
ion_err_t oafh_destroy(ion_file_hashmap_t *hash_map)
Destroys the map in memory.
Definition: open_address_file_hash.c:141
ion_status_t oafh_update(ion_file_hashmap_t *hash_map, ion_key_t key, ion_value_t value)
Updates a value in the map.
Definition: open_address_file_hash.c:170
ion_hash_t oafh_compute_simple_hash(ion_file_hashmap_t *hashmap, ion_key_t key, int size_of_key)
A simple hashing algorithm implementation.
Definition: open_address_file_hash.c:414
ion_err_t oafh_initialize(ion_file_hashmap_t *hashmap, ion_hash_t(*hashing_function)(ion_file_hashmap_t *, ion_key_t, int), ion_key_type_t key_type, ion_key_size_t key_size, ion_value_size_t value_size, int size, ion_dictionary_id_t id)
This function initializes an open address in memory hash map.
Definition: open_address_file_hash.c:63
char ion_write_concern_t
A type for write concern information used by hash table based dictionaries which limit insert/update ...
Definition: dictionary_types.h:440
Struct used to maintain an instance of an in memory hashmap.
Definition: open_address_file_hash.h:69
A status object that describes the result of a dictionary operation.
Definition: kv_system.h:290
int oafh_get_location(ion_hash_t num, int size)
Returns the theoretical location of item in hashmap.
Definition: open_address_file_hash.c:133