◆ ColumnStatistics() [1/2]
423268 : stats(std::move(stats_p)) {
423269 if (DistinctStatistics::TypeIsSupported(stats.GetType())) {
423271 }
423272}
unique_ptr< DistinctStatistics > distinct_stats
The approximate count distinct stats of the column.
Definition duckdb.hpp:48365
◆ ColumnStatistics() [2/2]
423274 : stats(std::move(stats_p)),
distinct_stats(std::move(distinct_stats_p)) {
423275}
◆ CreateEmptyStats()
423277 {
423279}
static BaseStatistics CreateEmpty(LogicalType type)
Definition duckdb.cpp:422871
◆ Merge()
| void duckdb::ColumnStatistics::Merge |
( |
ColumnStatistics & | other | ) |
|
423281 {
423282 stats.Merge(other.stats);
423285 }
423286}
◆ UpdateDistinctStatistics()
| void duckdb::ColumnStatistics::UpdateDistinctStatistics |
( |
Vector & | v, |
|
|
idx_t | count, |
|
|
Vector & | hashes ) |
423307 {
423309 return;
423310 }
423311
423313}
◆ Statistics()
423288 {
423289 return stats;
423290}
◆ HasDistinctStats()
| bool duckdb::ColumnStatistics::HasDistinctStats |
( |
| ) |
|
◆ DistinctStats()
423296 {
423298 throw InternalException("DistinctStats called without distinct_stats");
423299 }
423301}
◆ SetDistinct()
◆ Copy()
| shared_ptr< ColumnStatistics > duckdb::ColumnStatistics::Copy |
( |
| ) |
const |
◆ Serialize()
| void duckdb::ColumnStatistics::Serialize |
( |
Serializer & | serializer | ) |
const |
423319 {
423320 serializer.WriteProperty(100, "statistics", stats);
423321 serializer.WritePropertyWithDefault(101,
"distinct",
distinct_stats, unique_ptr<DistinctStatistics>());
423322}
◆ Deserialize()
423324 {
423325 auto stats = deserializer.ReadProperty<BaseStatistics>(100, "statistics");
423326 auto distinct_stats = deserializer.ReadPropertyWithExplicitDefault<unique_ptr<DistinctStatistics>>(
423327 101, "distinct", unique_ptr<DistinctStatistics>());
423328 return make_shared_ptr<ColumnStatistics>(std::move(stats), std::move(
distinct_stats));
423329}
The documentation for this class was generated from the following files: