|
|
static DUCKDB_API BaseStatistics | CreateUnknown (LogicalType type) |
| | Unknown statistics - i.e. "has_min" is false, "has_max" is false.
|
| |
|
static DUCKDB_API BaseStatistics | CreateEmpty (LogicalType type) |
| | Empty statistics - i.e. "min = MaxValue<type>, max = MinValue<type>".
|
| |
|
static DUCKDB_API bool | IsConstant (const BaseStatistics &stats) |
| | Returns true if the stats has a constant value.
|
| |
|
static DUCKDB_API bool | HasMinMax (const BaseStatistics &stats) |
| | Returns true if the stats has both a min and max value defined.
|
| |
|
static DUCKDB_API bool | HasMin (const BaseStatistics &stats) |
| | Returns true if the stats has a min value defined.
|
| |
|
static DUCKDB_API bool | HasMax (const BaseStatistics &stats) |
| | Returns true if the stats has a max value defined.
|
| |
|
static DUCKDB_API Value | Min (const BaseStatistics &stats) |
| | Returns the min value - throws an exception if there is no min value.
|
| |
|
static DUCKDB_API Value | Max (const BaseStatistics &stats) |
| | Returns the max value - throws an exception if there is no max value.
|
| |
|
static DUCKDB_API void | SetMin (BaseStatistics &stats, const Value &val) |
| | Sets the min value of the statistics.
|
| |
|
static DUCKDB_API void | SetMax (BaseStatistics &stats, const Value &val) |
| | Sets the max value of the statistics.
|
| |
| template<class T > |
| static void | SetMax (BaseStatistics &stats, T val) |
| |
| template<class T > |
| static void | SetMin (BaseStatistics &stats, T val) |
| |
|
static DUCKDB_API FilterPropagateResult | CheckZonemap (const BaseStatistics &stats, ExpressionType comparison_type, array_ptr< const Value > constants) |
| | Check whether or not a given comparison with a constant could possibly be satisfied by rows given the statistics.
|
| |
|
static DUCKDB_API void | Merge (BaseStatistics &stats, const BaseStatistics &other_p) |
| |
|
static DUCKDB_API void | Serialize (const BaseStatistics &stats, Serializer &serializer) |
| |
|
static DUCKDB_API void | Deserialize (Deserializer &deserializer, BaseStatistics &stats) |
| |
|
static DUCKDB_API string | ToString (const BaseStatistics &stats) |
| |
| template<class T > |
| static void | UpdateValue (T new_value, T &min, T &max) |
| |
| template<class T > |
| static void | Update (NumericStatsData &nstats, T new_value) |
| |
|
static void | Verify (const BaseStatistics &stats, Vector &vector, const SelectionVector &sel, idx_t count) |
| |
| template<class T > |
| static T | GetMin (const BaseStatistics &stats) |
| |
| template<class T > |
| static T | GetMax (const BaseStatistics &stats) |
| |
|
template<class T > |
| static T | GetMinUnsafe (const BaseStatistics &stats) |
| |
|
template<class T > |
| static T | GetMaxUnsafe (const BaseStatistics &stats) |
| |