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

Method ToString

cpp/src/arrow/extension/fixed_shape_tensor.cc:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57std::string FixedShapeTensorType::ToString(bool show_metadata) const {
58 std::stringstream ss;
59 ss << "extension<" << this->extension_name()
60 << "[value_type=" << value_type_->ToString(show_metadata)
61 << ", shape=" << ::arrow::internal::PrintVector{shape_, ","};
62
63 if (!permutation_.empty()) {
64 ss << ", permutation=" << ::arrow::internal::PrintVector{permutation_, ","};
65 }
66 if (!dim_names_.empty()) {
67 ss << ", dim_names=[" << internal::JoinStrings(dim_names_, ",") << "]";
68 }
69 ss << "]>";
70 return ss.str();
71}
72
73std::string FixedShapeTensorType::Serialize() const {
74 JsonWriter writer;

Callers 1

DeserializeMethod · 0.45

Calls 4

JoinStringsFunction · 0.85
strMethod · 0.80
extension_nameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected