quasardb C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Functions
tag.h File Reference
#include "client.h"

Data Structures

struct  qdb_const_tag_iterator_t
 An iterator to iterate on the entries matching a certain tag. More...
 

Functions

QDB_API_LINKAGE qdb_error_t qdb_attach_tag (qdb_handle_t handle, const char *alias, const char *tag)
 Adds a tag to an entry. More...
 
QDB_API_LINKAGE qdb_error_t qdb_attach_tags (qdb_handle_t handle, const char *alias, const char *const *tags, size_t tag_count)
 Adds a collection of tags to a single entry. More...
 
QDB_API_LINKAGE qdb_error_t qdb_has_tag (qdb_handle_t handle, const char *alias, const char *tag)
 Tests if an entry has the request tag. More...
 
QDB_API_LINKAGE qdb_error_t qdb_detach_tag (qdb_handle_t handle, const char *alias, const char *tag)
 Removes a tag from an entry. More...
 
QDB_API_LINKAGE qdb_error_t qdb_detach_tags (qdb_handle_t handle, const char *alias, const char *const *tags, size_t tag_count)
 Removes a collection of tags from a single entry. More...
 
QDB_API_LINKAGE qdb_error_t qdb_set_tags (qdb_handle_t handle, const char *alias, const char *const *tags, size_t tag_count)
 Sets the tags for a single entry with the given collection. Existing tags for the entry that are not included in the given collection will be detached. More...
 
QDB_API_LINKAGE qdb_error_t qdb_set_tags_fast (qdb_handle_t handle, const char *alias, const char *const *tags, size_t tag_count)
 Sets the tags for a single entry with the given collection, non transactional. Existing tags for the entry that are not included in the given collection will be detached. More...
 
QDB_API_LINKAGE qdb_error_t qdb_get_tagged (qdb_handle_t handle, const char *tag, const char ***aliases, size_t *alias_count)
 Retrieves all entries that have the specified tag. More...
 
QDB_API_LINKAGE qdb_error_t qdb_get_tagged_count (qdb_handle_t handle, const char *tag, qdb_uint_t *count)
 Computes the count of all entries matching the specified tag, up to the configured max cardinality. More...
 
QDB_API_LINKAGE qdb_error_t qdb_get_tagged_approximate_count (qdb_handle_t handle, const char *tag, qdb_uint_t *count)
 Computes the approximate count of all entries matching the specified tag, up to the configured max cardinality. More...
 
QDB_API_LINKAGE qdb_error_t qdb_get_tags (qdb_handle_t handle, const char *alias, const char ***tags, size_t *tag_count)
 Retrieves all the tags of an entry. More...
 
QDB_API_LINKAGE qdb_error_t qdb_tag_iterator_begin (qdb_handle_t handle, const char *tag, qdb_const_tag_iterator_t *iterator)
 Creates an iterator that will point to the first entry having the the specified tag. More...
 
QDB_API_LINKAGE qdb_error_t qdb_tag_iterator_next (qdb_const_tag_iterator_t *iterator)
 Advance a previously initialized iterator to the next entry. More...
 
QDB_API_LINKAGE qdb_error_t qdb_tag_iterator_close (qdb_const_tag_iterator_t *iterator)
 Releases all API-allocated resources during a previous iteration. More...
 
QDB_API_LINKAGE qdb_error_t qdb_tag_iterator_copy (const qdb_const_tag_iterator_t *original, qdb_const_tag_iterator_t *copy)
 Clones a previously initialized tag iterator. More...