6#include "../../blueprint/components/apply_latest_at.hpp"
7#include "../../blueprint/components/auto_scroll.hpp"
8#include "../../blueprint/components/column_order.hpp"
9#include "../../blueprint/components/filter_by_range.hpp"
10#include "../../blueprint/components/filter_is_not_null.hpp"
11#include "../../blueprint/components/selected_columns.hpp"
12#include "../../blueprint/components/timeline_name.hpp"
13#include "../../collection.hpp"
14#include "../../component_batch.hpp"
15#include "../../component_column.hpp"
16#include "../../result.hpp"
23namespace rerun::blueprint::archetypes {
46 std::optional<ComponentBatch>
select;
64 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.DataframeQuery";
124 return std::move(*
this);
136 return std::move(*
this);
146 return std::move(*
this);
156 return std::move(*
this);
163 return std::move(*
this);
177 return std::move(*
this);
188 return std::move(*
this);
212 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 Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
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: The query for the dataframe view.
Definition dataframe_query.hpp:28
std::optional< ComponentBatch > timeline
The timeline for this query.
Definition dataframe_query.hpp:32
std::optional< ComponentBatch > select
Selected columns. If unset, all columns are selected.
Definition dataframe_query.hpp:46
std::optional< ComponentBatch > entity_order
The order of entity path column groups.
Definition dataframe_query.hpp:54
static DataframeQuery clear_fields()
Clear all the fields of a DataframeQuery.
DataframeQuery with_timeline(const rerun::blueprint::components::TimelineName &_timeline) &&
The timeline for this query.
Definition dataframe_query.hpp:120
static constexpr auto Descriptor_timeline
ComponentDescriptor for the timeline field.
Definition dataframe_query.hpp:67
DataframeQuery with_select(const rerun::blueprint::components::SelectedColumns &_select) &&
Selected columns. If unset, all columns are selected.
Definition dataframe_query.hpp:160
static constexpr auto Descriptor_filter_is_not_null
ComponentDescriptor for the filter_is_not_null field.
Definition dataframe_query.hpp:77
std::optional< ComponentBatch > filter_by_range
If provided, only rows whose timestamp is within this range will be shown.
Definition dataframe_query.hpp:37
DataframeQuery with_filter_by_range(const rerun::blueprint::components::FilterByRange &_filter_by_range) &&
If provided, only rows whose timestamp is within this range will be shown.
Definition dataframe_query.hpp:130
static constexpr auto Descriptor_select
ComponentDescriptor for the select field.
Definition dataframe_query.hpp:87
DataframeQuery with_auto_scroll(const rerun::blueprint::components::AutoScroll &_auto_scroll) &&
Whether to auto-scroll to track the time cursor.
Definition dataframe_query.hpp:184
DataframeQuery with_apply_latest_at(const rerun::blueprint::components::ApplyLatestAt &_apply_latest_at) &&
Should empty cells be filled with latest-at queries?
Definition dataframe_query.hpp:150
static constexpr auto Descriptor_auto_scroll
ComponentDescriptor for the auto_scroll field.
Definition dataframe_query.hpp:97
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
std::optional< ComponentBatch > auto_scroll
Whether to auto-scroll to track the time cursor.
Definition dataframe_query.hpp:60
std::optional< ComponentBatch > apply_latest_at
Should empty cells be filled with latest-at queries?
Definition dataframe_query.hpp:43
static constexpr auto Descriptor_filter_by_range
ComponentDescriptor for the filter_by_range field.
Definition dataframe_query.hpp:72
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
static constexpr auto Descriptor_apply_latest_at
ComponentDescriptor for the apply_latest_at field.
Definition dataframe_query.hpp:82
std::optional< ComponentBatch > filter_is_not_null
If provided, only show rows which contains a logged event for the specified component.
Definition dataframe_query.hpp:40
static constexpr auto Descriptor_entity_order
ComponentDescriptor for the entity_order field.
Definition dataframe_query.hpp:92
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition dataframe_query.hpp:64
static DataframeQuery update_fields()
Update only some specific fields of a DataframeQuery.
Definition dataframe_query.hpp:110
DataframeQuery with_entity_order(const rerun::blueprint::components::ColumnOrder &_entity_order) &&
The order of entity path column groups.
Definition dataframe_query.hpp:172
DataframeQuery with_filter_is_not_null(const rerun::blueprint::components::FilterIsNotNull &_filter_is_not_null) &&
If provided, only show rows which contains a logged event for the specified component.
Definition dataframe_query.hpp:140
Component: Whether empty cells in a dataframe should be filled with a latest-at query.
Definition apply_latest_at.hpp:17
Component: The order of component columns (which remain always grouped by entity path) in the datafra...
Definition column_order.hpp:28
Component: Configuration for a filter-by-range feature of the dataframe view.
Definition filter_by_range.hpp:17
Component: Configuration for the filter is not null feature of the dataframe view.
Definition filter_is_not_null.hpp:18
Component: Describe a component column to be selected in the dataframe view.
Definition selected_columns.hpp:18
Component: A timeline identified by its name.
Definition timeline_name.hpp:19