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

Method ToParquet

cpp/src/parquet/schema.cc:491–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void GroupNode::ToParquet(void* opaque_element) const {
492 format::SchemaElement* element = static_cast<format::SchemaElement*>(opaque_element);
493 element->__set_name(name_);
494 element->__set_num_children(field_count());
495 element->__set_repetition_type(ToThrift(repetition_));
496 if (converted_type_ != ConvertedType::NONE) {
497 element->__set_converted_type(ToThrift(converted_type_));
498 }
499 if (field_id_ >= 0) {
500 element->__set_field_id(field_id_);
501 }
502 if (logical_type_ && logical_type_->is_serialized()) {
503 element->__set_logicalType(logical_type_->ToThrift());
504 }
505 return;
506}
507
508void PrimitiveNode::ToParquet(void* opaque_element) const {
509 format::SchemaElement* element = static_cast<format::SchemaElement*>(opaque_element);

Callers 8

VisitMethod · 0.80
ConstructFakeMetaDataFunction · 0.80
CheckNodeRoundtripFunction · 0.80
TESTFunction · 0.80
ReconstructMethod · 0.80
LegacyReconstructMethod · 0.80
TEST_FFunction · 0.80

Calls 15

field_countFunction · 0.85
ToThriftFunction · 0.85
ParquetExceptionFunction · 0.85
__set_nameMethod · 0.80
__set_num_childrenMethod · 0.80
__set_repetition_typeMethod · 0.80
__set_converted_typeMethod · 0.80
__set_field_idMethod · 0.80
__set_logicalTypeMethod · 0.80
is_nullMethod · 0.80
is_intervalMethod · 0.80
__set_typeMethod · 0.80

Tested by 7

ConstructFakeMetaDataFunction · 0.64
CheckNodeRoundtripFunction · 0.64
TESTFunction · 0.64
ReconstructMethod · 0.64
LegacyReconstructMethod · 0.64
TEST_FFunction · 0.64