|
|
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 BaseStatistics & | GetUnshreddedStats (const BaseStatistics &stats) |
| |
|
static DUCKDB_API BaseStatistics & | GetUnshreddedStats (BaseStatistics &stats) |
| |
|
static DUCKDB_API const BaseStatistics & | GetTypedStats (const BaseStatistics &stats) |
| | Returns the typed_value stats of a shredded stats entry.
|
| |
|
static DUCKDB_API const BaseStatistics & | GetTypedStats (const BaseStatistics &&stats)=delete |
| |
|
static DUCKDB_API optional_ptr< const BaseStatistics > | GetUntypedStats (const BaseStatistics &stats) |
| | Returns the untyped_value_index stats of a shredded stats entry - if there is any.
|
| |
|
static DUCKDB_API optional_ptr< const BaseStatistics > | GetUntypedStats (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 BaseStatistics & | GetShreddedStats (const BaseStatistics &stats) |
| |
|
static DUCKDB_API BaseStatistics & | GetShreddedStats (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< BaseStatistics > | WrapExtractedFieldAsVariant (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< BaseStatistics > | PushdownExtract (const BaseStatistics &stats, const StorageIndex &index) |
| |
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).