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

Method TypedStatisticsImpl

cpp/src/parquet/statistics.cc:576–586  ·  view source on GitHub ↗

Create an empty stats.

Source from the content-addressed store, hash-verified

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,

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