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

Method AddSlot

be/src/runtime/descriptors.cc:401–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401void TupleDescriptor::AddSlot(SlotDescriptor* slot) {
402 slots_.push_back(slot);
403 // If this is a tuple for struct children then we populate the 'string_slots_' field (in
404 // case of a var len string type) or the 'collection_slots_' field (in case of a
405 // collection type) of the topmost tuple and not this one.
406 TupleDescriptor* const target_tuple = isTupleOfStructSlot() ? master_tuple_ : this;
407 if (slot->type().IsVarLenStringType()) {
408 target_tuple->string_slots_.push_back(slot);
409 target_tuple->has_varlen_slots_ = true;
410 }
411 if (slot->type().IsCollectionType()) {
412 target_tuple->collection_slots_.push_back(slot);
413 target_tuple->has_varlen_slots_ = true;
414 }
415}
416
417string TupleDescriptor::DebugString() const {
418 stringstream out;

Callers 1

CreateInternalMethod · 0.80

Calls 4

push_backMethod · 0.80
IsVarLenStringTypeMethod · 0.80
IsCollectionTypeMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected