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

Method Visit

cpp/src/parquet/schema.cc:601–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599 : elements_(elements) {}
600
601 void Visit(const Node* node) override {
602 format::SchemaElement element;
603 node->ToParquet(&element);
604 elements_->push_back(std::move(element));
605
606 if (node->is_group()) {
607 const GroupNode* group_node = static_cast<const GroupNode*>(node);
608 for (int i = 0; i < group_node->field_count(); ++i) {
609 group_node->field(i)->VisitConst(this);
610 }
611 }
612 }
613
614 private:
615 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