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

Method Update

cpp/src/parquet/statistics.cc:899–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897
898template <typename DType>
899void TypedStatisticsImpl<DType>::Update(const T* values, int64_t num_values,
900 int64_t null_count) {
901 DCHECK_GE(num_values, 0);
902 DCHECK_GE(null_count, 0);
903
904 IncrementNullCount(null_count);
905 IncrementNumValues(num_values);
906
907 if (num_values == 0 || comparator_ == nullptr) return;
908 SetMinMaxPair(comparator_->GetMinMax(values, num_values));
909}
910
911template <typename DType>
912void 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