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

Method OrcCollectionReader

be/src/exec/orc/orc-column-readers.cc:599–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599OrcCollectionReader::OrcCollectionReader(const orc::Type* node,
600 const SlotDescriptor* slot_desc, HdfsOrcScanner* scanner)
601 : OrcComplexColumnReader(node, slot_desc, scanner) {
602 if (slot_desc->type().IsCollectionType() &&
603 node->getColumnId() == GetTargetColId(slot_desc)) {
604 // This is a collection SlotDescriptor whose item TupleDescriptor matches
605 // 'node'. We should materialize the slot (creating a CollectionValue) and its
606 // collection tuples (see more in HdfsOrcScanner::AssembleCollection).
607 tuple_desc_ = slot_desc->children_tuple_descriptor();
608 materialize_tuple_ = true;
609 }
610}
611
612Status OrcCollectionReader::AssembleCollection(int row_idx, Tuple* tuple, MemPool* pool) {
613 if (IsNull(DCHECK_NOTNULL(vbatch_), row_idx)) {

Callers

nothing calls this directly

Calls 3

IsCollectionTypeMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected