Create an empty stats.
| 574 | |
| 575 | // Create an empty stats. |
| 576 | TypedStatisticsImpl(const ColumnDescriptor* descr, MemoryPool* pool) |
| 577 | : descr_(descr), |
| 578 | pool_(pool), |
| 579 | min_buffer_(AllocateBuffer(pool_, 0)), |
| 580 | max_buffer_(AllocateBuffer(pool_, 0)), |
| 581 | logical_type_(LogicalTypeId(descr_)) { |
| 582 | if (descr->sort_order() != SortOrder::UNKNOWN) { |
| 583 | comparator_ = MakeComparator<DType>(descr); |
| 584 | } |
| 585 | TypedStatisticsImpl::Reset(); |
| 586 | } |
| 587 | |
| 588 | // Create stats from provided values. |
| 589 | TypedStatisticsImpl(const T& min, const T& max, int64_t num_values, int64_t null_count, |
nothing calls this directly
no test coverage detected