6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/channel_message_counts.hpp"
10#include "../components/count.hpp"
11#include "../components/timestamp.hpp"
12#include "../result.hpp"
81 static constexpr const char ArchetypeName[] =
"rerun.archetypes.McapStatistics";
174 .value_or_throw()) {}
191 return std::move(*
this);
203 return std::move(*
this);
212 return std::move(*
this);
224 return std::move(*
this);
233 return std::move(*
this);
245 return std::move(*
this);
255 return std::move(*
this);
268 return std::move(*
this);
279 return std::move(*
this);
292 return std::move(*
this);
301 return std::move(*
this);
313 return std::move(*
this);
325 return std::move(*
this);
338 return std::move(*
this);
349 return std::move(*
this);
362 return std::move(*
this);
370 _channel_message_counts,
374 return std::move(*
this);
385 _channel_message_counts,
389 return std::move(*
this);
413 template <
typename T>
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
A class for representing either a usable value, or an error.
Definition result.hpp:14
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:76
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: Recording-level statistics about an MCAP file, logged as a part of archetypes::RecordingIn...
Definition mcap_statistics.hpp:33
std::optional< ComponentBatch > attachment_count
Number of file attachments embedded in the recording.
Definition mcap_statistics.hpp:53
McapStatistics with_message_count(const rerun::components::Count &_message_count) &&
Total number of data messages contained in the MCAP recording.
Definition mcap_statistics.hpp:188
McapStatistics with_metadata_count(const rerun::components::Count &_metadata_count) &&
Number of metadata records providing additional context about the recording.
Definition mcap_statistics.hpp:275
std::optional< ComponentBatch > message_count
Total number of data messages contained in the MCAP recording.
Definition mcap_statistics.hpp:38
static constexpr auto Descriptor_chunk_count
ComponentDescriptor for the chunk_count field.
Definition mcap_statistics.hpp:109
std::optional< ComponentBatch > channel_message_counts
Detailed breakdown of message counts per channel.
Definition mcap_statistics.hpp:77
static constexpr auto Descriptor_schema_count
ComponentDescriptor for the schema_count field.
Definition mcap_statistics.hpp:89
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
static McapStatistics clear_fields()
Clear all the fields of a McapStatistics.
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.
Definition mcap_statistics.hpp:240
McapStatistics with_channel_count(const rerun::components::Count &_channel_count) &&
Number of channels defined in the recording.
Definition mcap_statistics.hpp:230
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.
Definition mcap_statistics.hpp:381
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.
Definition mcap_statistics.hpp:262
std::optional< ComponentBatch > message_end_time
Timestamp of the latest message in the recording.
Definition mcap_statistics.hpp:74
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.
Definition mcap_statistics.hpp:198
McapStatistics with_message_end_time(const rerun::components::Timestamp &_message_end_time) &&
Timestamp of the latest message in the recording.
Definition mcap_statistics.hpp:344
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.
Definition mcap_statistics.hpp:308
std::optional< ComponentBatch > chunk_count
Number of data chunks used to organize messages in the file.
Definition mcap_statistics.hpp:64
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition mcap_statistics.hpp:81
static constexpr auto Descriptor_channel_count
ComponentDescriptor for the channel_count field.
Definition mcap_statistics.hpp:94
std::optional< ComponentBatch > schema_count
Number of unique schema definitions in the recording.
Definition mcap_statistics.hpp:43
McapStatistics with_attachment_count(const rerun::components::Count &_attachment_count) &&
Number of file attachments embedded in the recording.
Definition mcap_statistics.hpp:251
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.
Definition mcap_statistics.hpp:286
McapStatistics with_schema_count(const rerun::components::Count &_schema_count) &&
Number of unique schema definitions in the recording.
Definition mcap_statistics.hpp:209
static constexpr auto Descriptor_attachment_count
ComponentDescriptor for the attachment_count field.
Definition mcap_statistics.hpp:99
static constexpr auto Descriptor_message_end_time
ComponentDescriptor for the message_end_time field.
Definition mcap_statistics.hpp:119
McapStatistics with_chunk_count(const rerun::components::Count &_chunk_count) &&
Number of data chunks used to organize messages in the file.
Definition mcap_statistics.hpp:298
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.
Definition mcap_statistics.hpp:332
static constexpr auto Descriptor_channel_message_counts
ComponentDescriptor for the channel_message_counts field.
Definition mcap_statistics.hpp:124
McapStatistics with_message_start_time(const rerun::components::Timestamp &_message_start_time) &&
Timestamp of the earliest message in the recording.
Definition mcap_statistics.hpp:319
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
std::optional< ComponentBatch > channel_count
Number of channels defined in the recording.
Definition mcap_statistics.hpp:48
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.
Definition mcap_statistics.hpp:356
static constexpr auto Descriptor_metadata_count
ComponentDescriptor for the metadata_count field.
Definition mcap_statistics.hpp:104
static McapStatistics update_fields()
Update only some specific fields of a McapStatistics.
Definition mcap_statistics.hpp:177
static constexpr auto Descriptor_message_count
ComponentDescriptor for the message_count field.
Definition mcap_statistics.hpp:84
std::optional< ComponentBatch > message_start_time
Timestamp of the earliest message in the recording.
Definition mcap_statistics.hpp:69
static constexpr auto Descriptor_message_start_time
ComponentDescriptor for the message_start_time field.
Definition mcap_statistics.hpp:114
std::optional< ComponentBatch > metadata_count
Number of metadata records providing additional context about the recording.
Definition mcap_statistics.hpp:59
McapStatistics with_channel_message_counts(const rerun::components::ChannelMessageCounts &_channel_message_counts) &&
Detailed breakdown of message counts per channel.
Definition mcap_statistics.hpp:366
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.
Definition mcap_statistics.hpp:219
Component: A mapping of channel IDs to their respective message counts.
Definition channel_message_counts.hpp:27
Component: A generic count value.
Definition count.hpp:19
Component: When the recording started.
Definition timestamp.hpp:16