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

Method addSingleGroupSpillInput

bolt/exec/SortedAggregations.cpp:283–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void SortedAggregations::addSingleGroupSpillInput(
284 char* group,
285 const VectorPtr& input,
286 vector_size_t index) {
287 auto* arrayVector = input->as<ArrayVector>();
288 auto* elementsVector = arrayVector->elements()->asFlatVector<StringView>();
289
290 const auto size = arrayVector->sizeAt(index);
291 const auto offset = arrayVector->offsetAt(index);
292 for (auto i = 0; i < size; ++i) {
293 char* newRow = inputData_->newRow();
294 inputData_->storeSerializedRow(*elementsVector, offset + i, newRow);
295 addNewRow(group, newRow);
296 }
297}
298
299bool SortedAggregations::compareRowsWithKeys(
300 const char* lhs,

Callers 1

updateRowsMethod · 0.80

Calls 4

sizeAtMethod · 0.80
offsetAtMethod · 0.80
storeSerializedRowMethod · 0.80
newRowMethod · 0.45

Tested by

no test coverage detected