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

Method CountModer

cpp/src/arrow/compute/kernels/aggregate_mode.cc:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 std::vector<uint64_t> counts;
127
128 CountModer(CType min, CType max) {
129 uint32_t value_range = static_cast<uint32_t>(max - min) + 1;
130 DCHECK_LT(value_range, 1 << 20);
131 this->min = min;
132 this->counts.resize(value_range, 0);
133 }
134
135 Status GetResult(KernelContext* ctx, const DataType& type, ExecResult* out) {
136 // generator to emit next value:count pair

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected