tranger2_print_md2_record()

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

bf

char *

Buffer where the formatted metadata string will be stored.

bfsize

int

Size of the buffer to ensure safe writing.

tranger

json_t *

Reference to the TimeRanger database instance.

topic

json_t *

JSON object representing the topic associated with the record.

key

const char *

Key identifying the record within the topic.

md_record_ex

const md2_record_ex_t *

Pointer to the extended metadata structure of the record.

print_local_time

BOOL

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