Hashes

A hash in this library is a bag of key/value pairs (with duplicates allowed) indexed and manipulated by the key. The hashes can be stored in memory or with persistant storage.

Hash Class

Table of Contents
librdf_init_hash --  Initialise the librdf_hash module
librdf_finish_hash --  Terminate the librdf_hash module
librdf_new_hash_datum --  Constructor - Create a new hash datum object
librdf_free_hash_datum --  Destructor - destroy a hash datum object
librdf_hash_register_factory --  Register a hash factory
librdf_get_hash_factory --  Get a hash factory by name
librdf_new_hash --  Constructor - create a new librdf_hash object
librdf_new_hash_from_factory --  Constructor - create a new librdf_hash object from a factory
librdf_new_hash_from_hash --  Copy Constructor - create a new librdf_hash object from an existing one
librdf_free_hash --  Destructor - destroy a librdf_hash object
librdf_hash_open --  Start a hash association
librdf_hash_close --  End a hash association
librdf_hash_values_count --  Get the number of values in the hash
librdf_hash_get --  Retrieve one value from hash for a given key as string
librdf_hash_get_one --  Retrieve one value from hash for a given key
librdf_hash_get_all --  Retrieve all values from hash for a given key
librdf_hash_get_del --  Retrieve one value from hash for a given key as string and remove all values with that key
librdf_hash_put --  Insert key/value pairs into the hash according to flags
librdf_hash_exists --  Check if a given key/value is in the hash
librdf_hash_delete --  Delete a key/value pair from the hash
librdf_hash_delete_all --  Delete a key and all values from the hash
librdf_hash_keys --  Get the hash keys
librdf_hash_sync --  Flush any cached information to disk if appropriate
librdf_hash_get_fd --  Get the file descriptor for the hash
librdf_hash_print --  pretty print the hash to a file descriptor
librdf_hash_print_keys --  pretty print the keys to a file descriptor
librdf_hash_print_values --  pretty print the values of one key to a file descriptor
librdf_hash_from_string --  Initialise a hash from a string
librdf_hash_from_array_of_strings --  Initialise a hash from an array of strings
librdf_hash_get_as_boolean --  lookup a hash key and decode value as a boolean
librdf_hash_get_as_long --  lookup a hash key and decode value as a long
librdf_hash_put_strings --  Insert key/value pairs into the hash as strings