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

Method GetCollectionValInterpreted

be/src/exprs/slot-ref.cc:550–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550CollectionVal SlotRef::GetCollectionValInterpreted(
551 ScalarExprEvaluator* eval, const TupleRow* row) const {
552 DCHECK(type_.IsCollectionType());
553 Tuple* t = row->GetTuple(tuple_idx_);
554 if (t == nullptr || t->IsNull(null_indicator_offset_)) return CollectionVal::null();
555 CollectionValue* coll_value =
556 reinterpret_cast<CollectionValue*>(t->GetSlot(slot_offset_));
557 return CollectionVal(coll_value->ptr, coll_value->num_tuples);
558}
559
560StructVal SlotRef::GetStructValInterpreted(
561 ScalarExprEvaluator* eval, const TupleRow* row) const {

Callers

nothing calls this directly

Calls 5

CollectionValClass · 0.85
IsCollectionTypeMethod · 0.80
GetTupleMethod · 0.45
IsNullMethod · 0.45
GetSlotMethod · 0.45

Tested by

no test coverage detected