Rerun C++ SDK
|
Archetype: Recording-level statistics about an MCAP file, logged as a part of archetypes::RecordingInfo
.
More...
#include <rerun/archetypes/mcap_statistics.hpp>
Public Member Functions | |
McapStatistics (McapStatistics &&other)=default | |
McapStatistics (const McapStatistics &other)=default | |
McapStatistics & | operator= (const McapStatistics &other)=default |
McapStatistics & | operator= (McapStatistics &&other)=default |
McapStatistics (rerun::components::Count _message_count, rerun::components::Count _schema_count, rerun::components::Count _channel_count, rerun::components::Count _attachment_count, rerun::components::Count _metadata_count, rerun::components::Count _chunk_count, rerun::components::Timestamp _message_start_time, rerun::components::Timestamp _message_end_time) | |
McapStatistics | with_message_count (const rerun::components::Count &_message_count) && |
Total number of data messages contained in the MCAP recording. | |
McapStatistics | with_many_message_count (const Collection< rerun::components::Count > &_message_count) && |
This method makes it possible to pack multiple message_count in a single component batch. | |
McapStatistics | with_schema_count (const rerun::components::Count &_schema_count) && |
Number of unique schema definitions in the recording. | |
McapStatistics | with_many_schema_count (const Collection< rerun::components::Count > &_schema_count) && |
This method makes it possible to pack multiple schema_count in a single component batch. | |
McapStatistics | with_channel_count (const rerun::components::Count &_channel_count) && |
Number of channels defined in the recording. | |
McapStatistics | with_many_channel_count (const Collection< rerun::components::Count > &_channel_count) && |
This method makes it possible to pack multiple channel_count in a single component batch. | |
McapStatistics | with_attachment_count (const rerun::components::Count &_attachment_count) && |
Number of file attachments embedded in the recording. | |
McapStatistics | with_many_attachment_count (const Collection< rerun::components::Count > &_attachment_count) && |
This method makes it possible to pack multiple attachment_count in a single component batch. | |
McapStatistics | with_metadata_count (const rerun::components::Count &_metadata_count) && |
Number of metadata records providing additional context about the recording. | |
McapStatistics | with_many_metadata_count (const Collection< rerun::components::Count > &_metadata_count) && |
This method makes it possible to pack multiple metadata_count in a single component batch. | |
McapStatistics | with_chunk_count (const rerun::components::Count &_chunk_count) && |
Number of data chunks used to organize messages in the file. | |
McapStatistics | with_many_chunk_count (const Collection< rerun::components::Count > &_chunk_count) && |
This method makes it possible to pack multiple chunk_count in a single component batch. | |
McapStatistics | with_message_start_time (const rerun::components::Timestamp &_message_start_time) && |
Timestamp of the earliest message in the recording. | |
McapStatistics | with_many_message_start_time (const Collection< rerun::components::Timestamp > &_message_start_time) && |
This method makes it possible to pack multiple message_start_time in a single component batch. | |
McapStatistics | with_message_end_time (const rerun::components::Timestamp &_message_end_time) && |
Timestamp of the latest message in the recording. | |
McapStatistics | with_many_message_end_time (const Collection< rerun::components::Timestamp > &_message_end_time) && |
This method makes it possible to pack multiple message_end_time in a single component batch. | |
McapStatistics | with_channel_message_counts (const rerun::components::ChannelMessageCounts &_channel_message_counts) && |
Detailed breakdown of message counts per channel. | |
McapStatistics | with_many_channel_message_counts (const Collection< rerun::components::ChannelMessageCounts > &_channel_message_counts) && |
This method makes it possible to pack multiple channel_message_counts in a single component batch. | |
Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
Partitions the component data into multiple sub-batches. | |
Collection< ComponentColumn > | columns () |
Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
static McapStatistics | update_fields () |
Update only some specific fields of a McapStatistics . | |
static McapStatistics | clear_fields () |
Clear all the fields of a McapStatistics . | |
Public Attributes | |
std::optional< ComponentBatch > | message_count |
Total number of data messages contained in the MCAP recording. | |
std::optional< ComponentBatch > | schema_count |
Number of unique schema definitions in the recording. | |
std::optional< ComponentBatch > | channel_count |
Number of channels defined in the recording. | |
std::optional< ComponentBatch > | attachment_count |
Number of file attachments embedded in the recording. | |
std::optional< ComponentBatch > | metadata_count |
Number of metadata records providing additional context about the recording. | |
std::optional< ComponentBatch > | chunk_count |
Number of data chunks used to organize messages in the file. | |
std::optional< ComponentBatch > | message_start_time |
Timestamp of the earliest message in the recording. | |
std::optional< ComponentBatch > | message_end_time |
Timestamp of the latest message in the recording. | |
std::optional< ComponentBatch > | channel_message_counts |
Detailed breakdown of message counts per channel. | |
Static Public Attributes | |
static constexpr const char | ArchetypeName [] = "rerun.archetypes.McapStatistics" |
The name of the archetype as used in ComponentDescriptor s. | |
static constexpr auto | Descriptor_message_count |
ComponentDescriptor for the message_count field. | |
static constexpr auto | Descriptor_schema_count |
ComponentDescriptor for the schema_count field. | |
static constexpr auto | Descriptor_channel_count |
ComponentDescriptor for the channel_count field. | |
static constexpr auto | Descriptor_attachment_count |
ComponentDescriptor for the attachment_count field. | |
static constexpr auto | Descriptor_metadata_count |
ComponentDescriptor for the metadata_count field. | |
static constexpr auto | Descriptor_chunk_count |
ComponentDescriptor for the chunk_count field. | |
static constexpr auto | Descriptor_message_start_time |
ComponentDescriptor for the message_start_time field. | |
static constexpr auto | Descriptor_message_end_time |
ComponentDescriptor for the message_end_time field. | |
static constexpr auto | Descriptor_channel_message_counts |
ComponentDescriptor for the channel_message_counts field. | |
Archetype: Recording-level statistics about an MCAP file, logged as a part of archetypes::RecordingInfo
.
This archetype contains summary information about an entire MCAP recording, including counts of messages, schemas, channels, and other records, as well as timing information spanning the full recording duration. It is typically logged once per recording to provide an overview of the dataset's structure and content.
See also archetypes::McapChannel
for individual channel definitions, archetypes::McapMessage
for message content, archetypes::McapSchema
for schema definitions, and the MCAP specification for complete format details.
⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
Total number of data messages contained in the MCAP recording.
This count includes all timestamped data messages but excludes metadata records, schema definitions, and other non-message records.
|
inline |
This method makes it possible to pack multiple message_count
in a single component batch.
This only makes sense when used in conjunction with columns
. with_message_count
should be used when logging a single row's worth of data.
|
inline |
Number of unique schema definitions in the recording.
Each schema defines the structure for one or more message types used by channels.
|
inline |
This method makes it possible to pack multiple schema_count
in a single component batch.
This only makes sense when used in conjunction with columns
. with_schema_count
should be used when logging a single row's worth of data.
|
inline |
Number of channels defined in the recording.
Each channel represents a unique topic and encoding combination for publishing messages.
|
inline |
This method makes it possible to pack multiple channel_count
in a single component batch.
This only makes sense when used in conjunction with columns
. with_channel_count
should be used when logging a single row's worth of data.
|
inline |
Number of file attachments embedded in the recording.
Attachments can include calibration files, configuration data, or other auxiliary files.
|
inline |
This method makes it possible to pack multiple attachment_count
in a single component batch.
This only makes sense when used in conjunction with columns
. with_attachment_count
should be used when logging a single row's worth of data.
|
inline |
Number of metadata records providing additional context about the recording.
Metadata records contain key-value pairs with information about the recording environment, system configuration, or other contextual data.
|
inline |
This method makes it possible to pack multiple metadata_count
in a single component batch.
This only makes sense when used in conjunction with columns
. with_metadata_count
should be used when logging a single row's worth of data.
|
inline |
Number of data chunks used to organize messages in the file.
Chunks group related messages together for efficient storage and indexed access.
|
inline |
This method makes it possible to pack multiple chunk_count
in a single component batch.
This only makes sense when used in conjunction with columns
. with_chunk_count
should be used when logging a single row's worth of data.
|
inline |
Timestamp of the earliest message in the recording.
This marks the beginning of the recorded data timeline.
|
inline |
This method makes it possible to pack multiple message_start_time
in a single component batch.
This only makes sense when used in conjunction with columns
. with_message_start_time
should be used when logging a single row's worth of data.
|
inline |
Timestamp of the latest message in the recording.
Together with message_start_time
, this defines the total duration of the recording.
|
inline |
This method makes it possible to pack multiple message_end_time
in a single component batch.
This only makes sense when used in conjunction with columns
. with_message_end_time
should be used when logging a single row's worth of data.
|
inline |
This method makes it possible to pack multiple channel_message_counts
in a single component batch.
This only makes sense when used in conjunction with columns
. with_channel_message_counts
should be used when logging a single row's worth of data.
Collection< ComponentColumn > rerun::archetypes::McapStatistics::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch
data into ComponentColumn
s instead, via ComponentBatch::partitioned
.
This makes it possible to use RecordingStream::send_columns
to send columnar data directly into Rerun.
The specified lengths
must sum to the total length of the component batch.
Collection< ComponentColumn > rerun::archetypes::McapStatistics::columns | ( | ) |
Partitions the component data into unit-length sub-batches.
This is semantically similar to calling columns
with std::vector<uint32_t>(n, 1)
, where n
is automatically guessed.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::message_count |
Total number of data messages contained in the MCAP recording.
This count includes all timestamped data messages but excludes metadata records, schema definitions, and other non-message records.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::schema_count |
Number of unique schema definitions in the recording.
Each schema defines the structure for one or more message types used by channels.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::channel_count |
Number of channels defined in the recording.
Each channel represents a unique topic and encoding combination for publishing messages.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::attachment_count |
Number of file attachments embedded in the recording.
Attachments can include calibration files, configuration data, or other auxiliary files.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::metadata_count |
Number of metadata records providing additional context about the recording.
Metadata records contain key-value pairs with information about the recording environment, system configuration, or other contextual data.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::chunk_count |
Number of data chunks used to organize messages in the file.
Chunks group related messages together for efficient storage and indexed access.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::message_start_time |
Timestamp of the earliest message in the recording.
This marks the beginning of the recorded data timeline.
std::optional<ComponentBatch> rerun::archetypes::McapStatistics::message_end_time |
Timestamp of the latest message in the recording.
Together with message_start_time
, this defines the total duration of the recording.
|
staticconstexpr |
ComponentDescriptor
for the message_count
field.
|
staticconstexpr |
ComponentDescriptor
for the schema_count
field.
|
staticconstexpr |
ComponentDescriptor
for the channel_count
field.
|
staticconstexpr |
ComponentDescriptor
for the attachment_count
field.
|
staticconstexpr |
ComponentDescriptor
for the metadata_count
field.
|
staticconstexpr |
ComponentDescriptor
for the chunk_count
field.
|
staticconstexpr |
ComponentDescriptor
for the message_start_time
field.
|
staticconstexpr |
ComponentDescriptor
for the message_end_time
field.
|
staticconstexpr |
ComponentDescriptor
for the channel_message_counts
field.