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

Method Update

cpp/src/parquet/statistics.cc:931–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929
930template <typename DType>
931void TypedStatisticsImpl<DType>::Update(const T* values, int64_t num_values,
932 int64_t null_count) {
933 DCHECK_GE(num_values, 0);
934 DCHECK_GE(null_count, 0);
935
936 IncrementNullCount(null_count);
937 IncrementNumValues(num_values);
938
939 if (num_values == 0 || comparator_ == nullptr) return;
940 SetMinMaxPair(comparator_->GetMinMax(values, num_values));
941}
942
943template <typename DType>
944void TypedStatisticsImpl<DType>::UpdateSpaced(const T* values, const uint8_t* valid_bits,

Callers 15

TestMinMaxEncodeMethod · 0.45
TestResetMethod · 0.45
TestMergeMethod · 0.45
TestEqualsMethod · 0.45
TestFullRoundtripMethod · 0.45
TestMinMaxEncodeMethod · 0.45
TestMergeMinMaxMethod · 0.45
TestMergeNullCountMethod · 0.45
AssertMinMaxAreFunction · 0.45
AssertUnsetMinMaxFunction · 0.45
CheckMinMaxZeroesSignMethod · 0.45

Calls 1

GetMinMaxMethod · 0.45

Tested by 12

TestMinMaxEncodeMethod · 0.36
TestResetMethod · 0.36
TestMergeMethod · 0.36
TestEqualsMethod · 0.36
TestFullRoundtripMethod · 0.36
TestMinMaxEncodeMethod · 0.36
TestMergeMinMaxMethod · 0.36
TestMergeNullCountMethod · 0.36
AssertMinMaxAreFunction · 0.36
AssertUnsetMinMaxFunction · 0.36
CheckMinMaxZeroesSignMethod · 0.36