MCPcopy Create free account
hub / github.com/bytedance/bolt / initializeNewGroups

Method initializeNewGroups

bolt/exec/SortedAggregations.cpp:226–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void SortedAggregations::initializeNewGroups(
227 char** groups,
228 folly::Range<const vector_size_t*> indices) {
229 for (auto i : indices) {
230 groups[i][nullByte_] |= nullMask_;
231 new (groups[i] + offset_) RowPointers();
232 }
233
234 for (const auto& [sortingSpec, aggregates] : aggregates_) {
235 for (const auto& aggregate : aggregates) {
236 aggregate->function->initializeNewGroups(groups, indices);
237 }
238 }
239}
240
241void SortedAggregations::addInput(char** groups, const RowVectorPtr& input) {
242 for (auto i = 0; i < inputs_.size(); ++i) {

Callers 8

addInputForActiveRowsMethod · 0.45
copyKeyAndInitGroupMethod · 0.45
initializeRowsMethod · 0.45
toIntermediateMethod · 0.45
convertCompositeInputMethod · 0.45
resetAggregateGroupMethod · 0.45
extractValuesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected