|
|
static DUCKDB_API BaseStatistics | CreateUnknown (LogicalType type) |
| | Unknown statistics - i.e. "has_unicode" is true, "max_string_length" is unknown, "min" is \0, max is \xFF.
|
| |
|
static DUCKDB_API BaseStatistics | CreateEmpty (LogicalType type) |
| | Empty statistics - i.e. "has_unicode" is false, "max_string_length" is 0, "min" is \xFF, max is \x00.
|
| |
|
static DUCKDB_API bool | HasMaxStringLength (const BaseStatistics &stats) |
| | Whether or not the statistics have a maximum string length defined.
|
| |
|
static DUCKDB_API uint32_t | MaxStringLength (const BaseStatistics &stats) |
| | Returns the maximum string length, or throws an exception if !HasMaxStringLength()
|
| |
|
static DUCKDB_API bool | CanContainUnicode (const BaseStatistics &stats) |
| | Whether or not the strings can contain unicode.
|
| |
|
static DUCKDB_API string | Min (const BaseStatistics &stats) |
| | Returns the min value (up to a length of StringStatsData::MAX_STRING_MINMAX_SIZE)
|
| |
|
static DUCKDB_API string | Max (const BaseStatistics &stats) |
| | Returns the max value (up to a length of StringStatsData::MAX_STRING_MINMAX_SIZE)
|
| |
|
static DUCKDB_API void | ResetMaxStringLength (BaseStatistics &stats) |
| | Resets the max string length so HasMaxStringLength() is false.
|
| |
|
static DUCKDB_API void | SetMaxStringLength (BaseStatistics &stats, uint32_t length) |
| | Sets the max string length.
|
| |
|
static DUCKDB_API void | SetContainsUnicode (BaseStatistics &stats) |
| | FIXME: make this part of Set on statistics.
|
| |
|
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 FilterPropagateResult | CheckZonemap (const BaseStatistics &stats, ExpressionType comparison_type, array_ptr< const Value > constants) |
| |
|
static DUCKDB_API FilterPropagateResult | CheckZonemap (const_data_ptr_t min_data, idx_t min_len, const_data_ptr_t max_data, idx_t max_len, ExpressionType comparison_type, const string &value) |
| |
|
static DUCKDB_API void | Update (BaseStatistics &stats, const string_t &value) |
| |
|
static DUCKDB_API void | SetMin (BaseStatistics &stats, const string_t &value) |
| |
|
static DUCKDB_API void | SetMax (BaseStatistics &stats, const string_t &value) |
| |
|
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) |
| |