Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::VariantStats Struct Reference

#include <duckdb.hpp>

Static Public Member Functions

static DUCKDB_API void Construct (BaseStatistics &stats)
 
static DUCKDB_API BaseStatistics CreateUnknown (LogicalType type)
 
static DUCKDB_API BaseStatistics CreateEmpty (LogicalType type)
 
static DUCKDB_API BaseStatistics CreateShredded (const LogicalType &shredded_type)
 
static DUCKDB_API void CreateUnshreddedStats (BaseStatistics &stats)
 
static DUCKDB_API const BaseStatisticsGetUnshreddedStats (const BaseStatistics &stats)
 
static DUCKDB_API BaseStatisticsGetUnshreddedStats (BaseStatistics &stats)
 
static DUCKDB_API const BaseStatisticsGetTypedStats (const BaseStatistics &stats)
 Returns the typed_value stats of a shredded stats entry.
 
static DUCKDB_API const BaseStatisticsGetTypedStats (const BaseStatistics &&stats)=delete
 
static DUCKDB_API optional_ptr< const BaseStatisticsGetUntypedStats (const BaseStatistics &stats)
 Returns the untyped_value_index stats of a shredded stats entry - if there is any.
 
static DUCKDB_API optional_ptr< const BaseStatisticsGetUntypedStats (const BaseStatistics &&stats)=delete
 
static DUCKDB_API void SetUnshreddedStats (BaseStatistics &stats, unique_ptr< BaseStatistics > new_stats)
 
static DUCKDB_API void SetUnshreddedStats (BaseStatistics &stats, const BaseStatistics &new_stats)
 
static DUCKDB_API void MarkAsNotShredded (BaseStatistics &stats)
 
static DUCKDB_API LogicalType GetShreddedStructuredType (const BaseStatistics &stats)
 
static DUCKDB_API void CreateShreddedStats (BaseStatistics &stats, const LogicalType &shredded_type)
 
static DUCKDB_API bool IsShredded (const BaseStatistics &stats)
 
static DUCKDB_API const BaseStatisticsGetShreddedStats (const BaseStatistics &stats)
 
static DUCKDB_API BaseStatisticsGetShreddedStats (BaseStatistics &stats)
 
static DUCKDB_API void SetShreddedStats (BaseStatistics &stats, unique_ptr< BaseStatistics > new_stats)
 
static DUCKDB_API void SetShreddedStats (BaseStatistics &stats, const BaseStatistics &new_stats)
 
static DUCKDB_API bool MergeShredding (const BaseStatistics &stats, const BaseStatistics &other, BaseStatistics &new_stats)
 
static DUCKDB_API unique_ptr< BaseStatisticsWrapExtractedFieldAsVariant (const BaseStatistics &base_variant, const BaseStatistics &extracted_field)
 
static DUCKDB_API void Serialize (const BaseStatistics &stats, Serializer &serializer)
 
static DUCKDB_API void Deserialize (Deserializer &deserializer, BaseStatistics &base)
 
static DUCKDB_API string ToString (const BaseStatistics &stats)
 
static DUCKDB_API void Merge (BaseStatistics &stats, const BaseStatistics &other)
 
static DUCKDB_API void Verify (const BaseStatistics &stats, Vector &vector, const SelectionVector &sel, idx_t count)
 
static DUCKDB_API void Copy (BaseStatistics &stats, const BaseStatistics &other)
 
static DUCKDB_API unique_ptr< BaseStatisticsPushdownExtract (const BaseStatistics &stats, const StorageIndex &index)
 

Static Public Attributes

static constexpr idx_t TYPED_VALUE_INDEX = 0
 
static constexpr idx_t UNTYPED_VALUE_INDEX = 1
 

Static Private Member Functions

static VariantStatsDataGetDataUnsafe (BaseStatistics &stats)
 
static const VariantStatsDataGetDataUnsafe (const BaseStatistics &stats)
 

Detailed Description

VARIANT as a type can hold arbitrarily typed values within the same column. In storage, we apply shredding to the VARIANT column, this means that we find the most common type among all these values. And for those values we store them separately from the rest of the values, in a structured way (like you would store any other column).

Member Function Documentation

◆ CreateUnshreddedStats()

static DUCKDB_API void duckdb::VariantStats::CreateUnshreddedStats ( BaseStatistics stats)
static

Stats related to the 'unshredded' column, which holds all data that doesn't fit in the structure of the shredded column (if IsShredded())

◆ GetShreddedStructuredType()

static DUCKDB_API LogicalType duckdb::VariantStats::GetShreddedStructuredType ( const BaseStatistics stats)
static

Stats related to the 'shredded' column, which holds all structured data created during shredding Returns the LogicalType that represents the shredding as a single DuckDB LogicalType (i.e STRUCT(col1 VARCHAR))


The documentation for this struct was generated from the following file: