tranger2_topic_key_size()
#
Retrieves the number of records associated with a specific key in a given topic within the TimeRanger database.
Prototype
uint64_t tranger2_topic_key_size(
json_t *tranger,
const char *topic_name,
const char *key
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the TimeRanger database instance. |
|
|
Name of the topic containing the key. |
|
|
The key whose record count is to be retrieved. |
Return Value
Returns the number of records associated with the specified key
in the given topic_name
.
Notes
If the topic or key does not exist, the function may return zero.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples