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

Method TypedStatisticsImpl

cpp/src/parquet/statistics.cc:663–673  ·  view source on GitHub ↗

Create an empty stats.

Source from the content-addressed store, hash-verified

661
662 // Create an empty stats.
663 TypedStatisticsImpl(const ColumnDescriptor* descr, MemoryPool* pool)
664 : descr_(descr),
665 pool_(pool),
666 min_buffer_(AllocateBuffer(pool_, 0)),
667 max_buffer_(AllocateBuffer(pool_, 0)),
668 logical_type_(LogicalTypeId(descr_)) {
669 if (descr->sort_order() != SortOrder::UNKNOWN) {
670 comparator_ = MakeComparator<DType>(descr);
671 }
672 TypedStatisticsImpl::Reset();
673 }
674
675 // Create stats from provided values.
676 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