MCPcopy Create free account
hub / github.com/apache/arrow / TypedStatisticsImpl

Method TypedStatisticsImpl

cpp/src/parquet/statistics.cc:608–618  ·  view source on GitHub ↗

Create an empty stats.

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 7

LogicalTypeIdFunction · 0.85
default_memory_poolFunction · 0.85
AllocateBufferFunction · 0.70
ResetFunction · 0.50
CopyFunction · 0.50
sort_orderMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected