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

Method OrcColumnReader

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

Source from the content-addressed store, hash-verified

151}
152
153OrcColumnReader::OrcColumnReader(const orc::Type* orc_type,
154 const SlotDescriptor* slot_desc, HdfsOrcScanner* scanner)
155 : slot_desc_(slot_desc), scanner_(scanner) {
156 orc_column_id_ = DCHECK_NOTNULL(orc_type)->getColumnId();
157 if (slot_desc_ == nullptr) {
158 orc::TypeKind type_kind = orc_type->getKind();
159 DCHECK(type_kind == orc::TypeKind::LIST
160 || type_kind == orc::TypeKind::MAP
161 || type_kind == orc::TypeKind::STRUCT)
162 << "Selected primitive types should have SlotDescriptors";
163 }
164 VLOG(3) << "Created reader for " << PrintNode(orc_type) << ": slot_desc_="
165 << (slot_desc_? slot_desc_->DebugString() : "null");
166}
167
168Status OrcBoolColumnReader::ReadValue(int row_idx, Tuple* tuple, MemPool* pool) {
169 if (IsNull(DCHECK_NOTNULL(batch_), row_idx)) {

Callers

nothing calls this directly

Calls 3

PrintNodeFunction · 0.85
getKindMethod · 0.80
DebugStringMethod · 0.45

Tested by

no test coverage detected