|
|
LogicalType | type = LogicalType::INVALID |
| | The type of the logical segment.
|
| |
|
bool | has_null |
| | Whether or not the segment can contain NULL values.
|
| |
|
bool | has_no_null |
| | Whether or not the segment can contain values that are not null.
|
| |
|
idx_t | distinct_count |
| | estimate that one may have even if distinct_stats==nullptr
|
| |
|
union { | |
| |
|
NumericStatsData numeric_data | |
| | Numeric stats data, for numeric stats.
|
| |
|
StringStatsData string_data | |
| | String stats data, for string stats.
|
| |
|
GeometryStatsData geometry_data | |
| | Geometry stats data, for geometry stats.
|
| |
|
VariantStatsData variant_data | |
| | Variant stats data, for variant stats.
|
| |
| } | stats_union | |
| | Numeric and String stats.
|
| |
|
unsafe_unique_array< BaseStatistics > | child_stats |
| | Child stats (for LIST and STRUCT)
|
| |
◆ CreateUnknown()
Creates a set of statistics for data that is unknown, i.e. "has_null" is true, "has_no_null" is true, etc This can be used in case nothing is known about the data - or can be used as a baseline when only a few things are known
◆ CreateEmpty()
Creates statistics for an empty database, i.e. "has_null" is false, "has_no_null" is false, etc This is used when incrementally constructing statistics by constantly adding new values
◆ GetType()
16314 {
16316 }
LogicalType type
The type of the logical segment.
Definition duckdb.hpp:16378
◆ SetHasNullFast()
| void duckdb::BaseStatistics::SetHasNullFast |
( |
| ) |
|
|
inline |
Set that the CURRENT level can have null values Note that this is not correct for nested types unless this information is propagated in a different manner Use Set(StatsInfo::CAN_HAVE_NULL_VALUES) in the general case
16324 {
16326 }
bool has_null
Whether or not the segment can contain NULL values.
Definition duckdb.hpp:16380
◆ SetHasNoNullFast()
| void duckdb::BaseStatistics::SetHasNoNullFast |
( |
| ) |
|
|
inline |
Set that the CURRENT level can have valid values Note that this is not correct for nested types unless this information is propagated in a different manner Use Set(StatsInfo::CAN_HAVE_VALID_VALUES) in the general case
16330 {
16332 }
bool has_no_null
Whether or not the segment can contain values that are not null.
Definition duckdb.hpp:16382
◆ UpdateNumericStats() [1/3]
| void duckdb::BaseStatistics::UpdateNumericStats |
( |
T |
new_value | ) |
|
|
inline |
16358 {
16359 D_ASSERT(GetStatsType() == StatisticsType::NUMERIC_STATS);
16360 NumericStats::Update(
stats_union.numeric_data, new_value);
16361 }
union duckdb::BaseStatistics::@31 stats_union
Numeric and String stats.
◆ UpdateNumericStats() [2/3]
template<>
| void duckdb::BaseStatistics::UpdateNumericStats |
( |
interval_t |
new_value | ) |
|
|
inline |
◆ UpdateNumericStats() [3/3]
The documentation for this class was generated from the following file: