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::DuckDBPartitionRowGroup Struct Reference
Inheritance diagram for duckdb::DuckDBPartitionRowGroup:
Collaboration diagram for duckdb::DuckDBPartitionRowGroup:

Public Member Functions

 DuckDBPartitionRowGroup (shared_ptr< RowGroup > row_group_p, bool is_exact_p)
unique_ptr< BaseStatistics > GetColumnStatistics (const StorageIndex &storage_index) override
bool MinMaxIsExact (const BaseStatistics &stats, const StorageIndex &) override

Public Attributes

shared_ptr< RowGroup > row_group
const bool is_exact

Constructor & Destructor Documentation

◆ DuckDBPartitionRowGroup()

duckdb::DuckDBPartitionRowGroup::DuckDBPartitionRowGroup ( shared_ptr< RowGroup > row_group_p,
bool is_exact_p )
inlineexplicit
434344 : row_group(std::move(row_group_p)), is_exact(is_exact_p) {
434345 }

Member Function Documentation

◆ GetColumnStatistics()

unique_ptr< BaseStatistics > duckdb::DuckDBPartitionRowGroup::GetColumnStatistics ( const StorageIndex & storage_index)
inlineoverridevirtual

Implements duckdb::PartitionRowGroup.

434350 {
434351 return row_group->GetStatistics(storage_index);
434352 }

◆ MinMaxIsExact()

bool duckdb::DuckDBPartitionRowGroup::MinMaxIsExact ( const BaseStatistics & stats,
const StorageIndex &  )
inlineoverridevirtual

Implements duckdb::PartitionRowGroup.

434354 {
434355 if (!is_exact || row_group->HasChanges()) {
434356 return false;
434357 }
434358 if (stats.GetStatsType() == StatisticsType::STRING_STATS) {
434359 if (!StringStats::HasMaxStringLength(stats)) {
434360 return false;
434361 }
434362 const idx_t max_length = StringStats::MaxStringLength(stats);
434363 return max_length == StringStats::Max(stats).length() && max_length == StringStats::Min(stats).length();
434364 }
434365 return stats.GetStatsType() == StatisticsType::NUMERIC_STATS;
434366 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
static DUCKDB_API uint32_t MaxStringLength(const BaseStatistics &stats)
Returns the maximum string length, or throws an exception if !HasMaxStringLength().
Definition duckdb.cpp:424560
static DUCKDB_API bool HasMaxStringLength(const BaseStatistics &stats)
Whether or not the statistics have a maximum string length defined.
Definition duckdb.cpp:424553
static DUCKDB_API string Max(const BaseStatistics &stats)
Returns the max value (up to a length of StringStatsData::MAX_STRING_MINMAX_SIZE).
Definition duckdb.cpp:424588
static DUCKDB_API string Min(const BaseStatistics &stats)
Returns the min value (up to a length of StringStatsData::MAX_STRING_MINMAX_SIZE).
Definition duckdb.cpp:424584

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