Create an empty stats.
| 606 | |
| 607 | // Create an empty stats. |
| 608 | TypedStatisticsImpl(const ColumnDescriptor* descr, MemoryPool* pool) |
| 609 | : descr_(descr), |
| 610 | pool_(pool), |
| 611 | min_buffer_(AllocateBuffer(pool_, 0)), |
| 612 | max_buffer_(AllocateBuffer(pool_, 0)), |
| 613 | logical_type_(LogicalTypeId(descr_)) { |
| 614 | if (descr->sort_order() != SortOrder::UNKNOWN) { |
| 615 | comparator_ = MakeComparator<DType>(descr); |
| 616 | } |
| 617 | TypedStatisticsImpl::Reset(); |
| 618 | } |
| 619 | |
| 620 | // Create stats from provided values. |
| 621 | TypedStatisticsImpl(const T& min, const T& max, int64_t num_values, int64_t null_count, |
nothing calls this directly
no test coverage detected