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

Method FixUpStringsForRead

be/src/runtime/buffered-tuple-stream.cc:916–927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914}
915
916void BufferedTupleStream::FixUpStringsForRead(const vector<SlotDescriptor*>& string_slots,
917 ReadIterator* RESTRICT read_iter, Tuple* tuple) {
918 DCHECK(tuple != nullptr);
919 for (const SlotDescriptor* slot_desc : string_slots) {
920 if (tuple->IsNull(slot_desc->null_indicator_offset())) continue;
921
922 StringValue* sv = tuple->GetStringSlot(slot_desc->tuple_offset());
923 if (sv->IsSmall()) continue;
924 sv->SetPtr(reinterpret_cast<char*>(read_iter->read_ptr_));
925 read_iter->AdvanceReadPtr(sv->Len());
926 }
927}
928
929void BufferedTupleStream::FixUpCollectionsForRead(
930 const vector<SlotDescriptor*>& collection_slots, ReadIterator* RESTRICT read_iter,

Callers

nothing calls this directly

Calls 7

GetStringSlotMethod · 0.80
tuple_offsetMethod · 0.80
AdvanceReadPtrMethod · 0.80
IsNullMethod · 0.45
IsSmallMethod · 0.45
SetPtrMethod · 0.45
LenMethod · 0.45

Tested by

no test coverage detected