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

Method ToJSON

cpp/src/parquet/types.cc:719–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717 }
718
719 virtual std::string ToJSON() const {
720 ::arrow::internal::JsonWriter writer;
721 writer.StartObject();
722 writer.StringField("Type", ToString());
723 writer.EndObject();
724 PARQUET_ASSIGN_OR_THROW(std::string_view json, writer.GetString());
725 return std::string(json);
726 }
727
728 virtual format::LogicalType ToThrift() const {
729 // logical types inheriting this method should never be serialized

Callers

nothing calls this directly

Calls 4

StringFieldMethod · 0.80
ToStringFunction · 0.50
StartObjectMethod · 0.45
EndObjectMethod · 0.45

Tested by

no test coverage detected