#include <Dictionary.h>
Public Member Functions | |
~Dictionary () | |
ion_err_t | initializeDictionary (ion_dictionary_id_t dict_id, ion_key_type_t k_type, ion_key_size_t k_size, ion_value_size_t v_size, ion_dictionary_size_t dictionary_size) |
Creates a dictionary with a specific identifier (for use through the master table). More... | |
ion_status_t | insert (K key, V value) |
Insert a value into a dictionary. More... | |
V | get (K key) |
Retrieve a value given a key. More... | |
ion_status_t | deleteRecord (K key) |
Delete a value given a key. More... | |
ion_status_t | update (K key, V value) |
Update all records with a given key. More... | |
ion_err_t | deleteDictionary () |
Deletes dictionary. More... | |
ion_err_t | destroyDictionary (ion_dictionary_id_t id) |
Destroys dictionary. More... | |
ion_err_t | open (ion_dictionary_config_info_t config_info) |
Opens a dictionary, given the desired config. More... | |
ion_err_t | close () |
Closes a dictionary. More... | |
Cursor< K, V > * | range (K min_key, K max_key) |
Sets up cursor and predicate to perform a range query on a dictionary. More... | |
Cursor< K, V > * | equality (K key) |
Sets up cursor and predicate perform an equality query on a dictionary for a given key. More... | |
Cursor< K, V > * | allRecords () |
Sets up cursor and predicate in order to find all records present in the dictionary. More... | |
Detailed Description
template<typename K, typename V>
class Dictionary< K, V >
Definition at line 49 of file Dictionary.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 60 of file Dictionary.h.
Member Function Documentation
|
inline |
Sets up cursor and predicate in order to find all records present in the dictionary.
- Returns
- An initialized cursor for the particular query.
Definition at line 306 of file Dictionary.h.
|
inline |
Closes a dictionary.
Definition at line 248 of file Dictionary.h.
|
inline |
Deletes dictionary.
- Returns
- An error message describing the total destruction of the dictionary.
Definition at line 196 of file Dictionary.h.
|
inline |
Delete a value given a key.
- Parameters
-
key The key to be deleted.
- Returns
- An error message describing the result of the deletion.
Definition at line 156 of file Dictionary.h.
|
inline |
Destroys dictionary.
- Parameters
-
id The identifier identifying the dictionary to destroy.
- Returns
- The status of the total destruction of the dictionary.
Definition at line 212 of file Dictionary.h.
|
inline |
Sets up cursor and predicate perform an equality query on a dictionary for a given key.
- Parameters
-
key The key used to determine equality.
- Returns
- An initialized cursor for the particular query.
Definition at line 289 of file Dictionary.h.
|
inline |
Retrieve a value given a key.
- Parameters
-
key The key to retrieve the value for.
- Returns
- value A pointer to the value byte array to copy data into.
Definition at line 137 of file Dictionary.h.
|
inline |
Creates a dictionary with a specific identifier (for use through the master table).
- Parameters
-
dict_id A unique identifier important for use of the dictionary through the master table. If the dictionary is being created without the master table, this identifier can be 0. k_type The type of key to be used with this dictionary, which determines the key comparison operator. k_size The size of the key type to be used with this dictionary. v_size The size of the value type to be used with this dictionary. dictionary_size The dictionary implementation specific dictionary size parameter.
- Returns
- An error code describing the result of the operation.
Definition at line 85 of file Dictionary.h.
|
inline |
Insert a value into a dictionary.
- Parameters
-
key The key that identifies value
.value The value to store under key
.
- Returns
- An error message describing the result of the insertion.
Definition at line 114 of file Dictionary.h.
|
inline |
Opens a dictionary, given the desired config.
- Parameters
-
config_info The configuration of the dictionary to be opened.
- Returns
- An error message describing the result of of the open.
Definition at line 230 of file Dictionary.h.
|
inline |
Sets up cursor and predicate to perform a range query on a dictionary.
- Parameters
-
min_key The minimum key to be included in the query. max_key The maximum key to be included in the query.
- Returns
- An initialized cursor for the particular query.
Definition at line 268 of file Dictionary.h.
|
inline |
Update all records with a given key.
- Parameters
-
key The key to identify records for updating. value The value to update records with.
- Returns
- An error message describing the result of the update.
Definition at line 177 of file Dictionary.h.
Member Data Documentation
ion_dictionary_t Dictionary< K, V >::dict |
Definition at line 53 of file Dictionary.h.
ion_dictionary_size_t Dictionary< K, V >::dict_size |
Definition at line 57 of file Dictionary.h.
ion_dictionary_handler_t Dictionary< K, V >::handler |
Definition at line 52 of file Dictionary.h.
ion_key_size_t Dictionary< K, V >::key_size |
Definition at line 55 of file Dictionary.h.
ion_key_type_t Dictionary< K, V >::key_type |
Definition at line 54 of file Dictionary.h.
ion_status_t Dictionary< K, V >::last_status |
Definition at line 58 of file Dictionary.h.
ion_value_size_t Dictionary< K, V >::value_size |
Definition at line 56 of file Dictionary.h.
The documentation for this class was generated from the following file: