MCPcopy Create free account
hub / github.com/apache/impala / CopyGroupingValuesStringSlot

Method CopyGroupingValuesStringSlot

be/src/exec/grouping-aggregator-ir.cc:324–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324int GroupingAggregator::CopyGroupingValuesStringSlot(Tuple* intermediate_tuple,
325 int idx, int tuple_offset, uint8_t* buffer) noexcept {
326 if (ht_ctx_->ExprValueNull(idx)) return 0;
327
328 // ptr and len were already copied to the fixed-len part of string value
329 StringValue* sv = reinterpret_cast<StringValue*>(
330 intermediate_tuple->GetSlot(tuple_offset));
331 if (sv->IsSmall()) return 0;
332 memcpy(buffer, sv->Ptr(), sv->Len());
333 sv->SetPtr(reinterpret_cast<char*>(buffer));
334 return sv->Len();
335}
336
337// Instantiate required templates.
338template Status GroupingAggregator::AddBatchImpl<false>(

Callers

nothing calls this directly

Calls 6

ExprValueNullMethod · 0.80
GetSlotMethod · 0.45
IsSmallMethod · 0.45
PtrMethod · 0.45
LenMethod · 0.45
SetPtrMethod · 0.45

Tested by

no test coverage detected