MCPcopy Create free account
hub / github.com/apache/arrow / Visit

Method Visit

cpp/src/parquet/schema.cc:634–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632 : elements_(elements) {}
633
634 void Visit(const Node* node) override {
635 format::SchemaElement element;
636 node->ToParquet(&element);
637 elements_->push_back(std::move(element));
638
639 if (node->is_group()) {
640 const GroupNode* group_node = static_cast<const GroupNode*>(node);
641 for (int i = 0; i < group_node->field_count(); ++i) {
642 group_node->field(i)->VisitConst(this);
643 }
644 }
645 }
646
647 private:
648 std::vector<format::SchemaElement>* elements_;

Callers

nothing calls this directly

Calls 4

ToParquetMethod · 0.80
push_backMethod · 0.80
VisitConstMethod · 0.80
fieldMethod · 0.45

Tested by

no test coverage detected