6#include "../../blueprint/encodings/sort_by.hpp"
7#include "../../result.hpp"
13namespace rerun::blueprint::components {
27 sort_by = std::move(sort_by_);
45 struct Loggable<blueprint::components::SortBy> {
46 static constexpr std::string_view
ComponentType =
"rerun.blueprint.components.SortBy";
49 static const std::shared_ptr<arrow::DataType>& arrow_data_type() {
54 static Result<std::shared_ptr<arrow::Array>> to_arrow(
55 const blueprint::components::SortBy* instances,
size_t num_instances
57 if (num_instances == 0) {
58 return Loggable<rerun::blueprint::encodings::SortBy>::to_arrow(
nullptr, 0);
59 }
else if (instances ==
nullptr) {
61 ErrorCode::UnexpectedNullArgument,
62 "Passed array instances is null when num_elements> 0."
65 return Loggable<rerun::blueprint::encodings::SortBy>::to_arrow(
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:104
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
A type of component that can be registered.
Definition component_type.hpp:19
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Component: The column and direction a table's rows are sorted by.
Definition sort_by.hpp:18
Encoding: The column and direction a table's rows are sorted by.
Definition sort_by.hpp:25