open_address_hash.h
Go to the documentation of this file.
int(* compute_hash)(ion_hashmap_t *, ion_key_t, int)
Definition: open_address_hash.h:76
ion_status_t oah_get(ion_hashmap_t *hash_map, ion_key_t key, ion_value_t value)
Locates the record if it exists.
Definition: open_address_hash.c:267
ion_hash_t oah_compute_simple_hash(ion_hashmap_t *hashmap, ion_key_t key, int size_of_key)
A simple hashing algorithm implementation.
Definition: open_address_hash.c:337
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 oah_initialize(ion_hashmap_t *hashmap, ion_hash_t(*hashing_function)(ion_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)
This function initializes an open address in memory hash map.
Definition: open_address_hash.c:46
int oah_get_location(ion_hash_t num, int size)
Returns the theoretical location of item in hashmap.
Definition: open_address_hash.c:86
ion_err_t oah_destroy(ion_hashmap_t *hash_map)
Destroys the map in memory.
Definition: open_address_hash.c:94
ion_status_t oah_insert(ion_hashmap_t *hash_map, ion_key_t key, ion_value_t value)
Insert record into hashmap.
Definition: open_address_hash.c:130
ion_err_t oah_find_item_loc(ion_hashmap_t *hash_map, ion_key_t key, int *location)
Locates item in map.
Definition: open_address_hash.c:194
ion_status_t oah_delete(ion_hashmap_t *hash_map, ion_key_t key)
Deletes item from map.
Definition: open_address_hash.c:241
ion_status_t oah_update(ion_hashmap_t *hash_map, ion_key_t key, ion_value_t value)
Updates a value in the map.
Definition: open_address_hash.c:114
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
This file includes common components for oadictionary and oahash.
A status object that describes the result of a dictionary operation.
Definition: kv_system.h:290