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

Method Reset

cpp/src/arrow/util/tdigest.cc:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 explicit TDigestMerger(uint32_t delta) : T(delta) { Reset(0, nullptr); }
78
79 void Reset(double total_weight, std::vector<Centroid>* tdigest) {
80 total_weight_ = total_weight;
81 tdigest_ = tdigest;
82 if (tdigest_) {
83 tdigest_->resize(0);
84 }
85 weight_so_far_ = 0;
86 weight_limit_ = -1; // trigger first centroid merge
87 }
88
89 // merge one centroid from a sorted centroid stream
90 void Add(const Centroid& centroid) {

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected