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::TableStatistics Class Reference
Collaboration diagram for duckdb::TableStatistics:

Public Member Functions

void Initialize (const vector< LogicalType > &types, PersistentTableData &data)
 
void InitializeEmpty (const vector< LogicalType > &types)
 
void InitializeEmpty (const TableStatistics &other)
 
void InitializeAddColumn (TableStatistics &parent, const LogicalType &new_column_type)
 
void InitializeRemoveColumn (TableStatistics &parent, idx_t removed_column)
 
void InitializeAlterType (TableStatistics &parent, idx_t changed_idx, const LogicalType &new_type)
 
void InitializeAddConstraint (TableStatistics &parent)
 
void MergeStats (TableStatistics &other)
 
void MergeStats (idx_t i, BaseStatistics &stats)
 
void MergeStats (TableStatisticsLock &lock, idx_t i, BaseStatistics &stats)
 
void SetStats (TableStatistics &other)
 
void CopyStats (TableStatistics &other)
 
void CopyStats (TableStatisticsLock &lock, TableStatistics &other)
 
unique_ptr< BaseStatisticsCopyStats (const StorageIndex &i)
 
ColumnStatisticsGetStats (TableStatisticsLock &lock, idx_t i)
 
unique_ptr< BlockingSampleGetTableSample (TableStatisticsLock &lock)
 Get a reference to the table sample - this requires us to hold the lock.
 
void SetTableSample (TableStatisticsLock &lock, unique_ptr< BlockingSample > sample)
 
void DestroyTableSample (TableStatisticsLock &lock) const
 
void AppendToTableSample (TableStatisticsLock &lock, unique_ptr< BlockingSample > sample)
 
bool Empty ()
 
unique_ptr< TableStatisticsLockGetLock ()
 
void Serialize (Serializer &serializer) const
 
void Deserialize (Deserializer &deserializer, ColumnList &columns)
 

Private Attributes

shared_ptr< mutex > stats_lock
 The statistics lock.
 
vector< shared_ptr< ColumnStatistics > > column_stats
 Column statistics.
 
unique_ptr< BlockingSampletable_sample
 The table sample.
 

Member Function Documentation

◆ GetStats()

ColumnStatistics & duckdb::TableStatistics::GetStats ( TableStatisticsLock lock,
idx_t  i 
)

Get a reference to the stats - this requires us to hold the lock. The reference can only be safely accessed while the lock is held

◆ GetTableSample()

unique_ptr< BlockingSample > duckdb::TableStatistics::GetTableSample ( TableStatisticsLock lock)

Get a reference to the table sample - this requires us to hold the lock.

Take ownership of the sample, needed for merging. Requires the lock


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