tranger2_print_md2_record()
#
Prints detailed metadata of a record, including row ID, offset, size, timestamp, and file path, into the provided buffer.
Prototype
void tranger2_print_md2_record(
char *bf,
int bfsize,
json_t *tranger,
json_t *topic,
const char *key,
const md2_record_ex_t *md_record_ex,
BOOL print_local_time
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Buffer where the formatted metadata string will be stored. |
|
|
Size of the buffer to ensure safe writing. |
|
|
Reference to the TimeRanger database instance. |
|
|
JSON object representing the topic associated with the record. |
|
|
Key identifying the record within the topic. |
|
|
Pointer to the extended metadata structure of the record. |
|
|
Flag indicating whether to print timestamps in local time. |
Return Value
This function does not return a value.
Notes
The function formats metadata details into the provided buffer, ensuring that the output remains within the specified buffer size.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples