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

Method PrintType

cpp/src/arrow/pretty_print.cc:644–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642};
643
644Status SchemaPrinter::PrintType(const DataType& type, bool nullable) {
645 Write(type.ToString());
646 if (!nullable) {
647 Write(" not null");
648 }
649 for (int i = 0; i < type.num_fields(); ++i) {
650 Newline();
651 Indent();
652
653 std::stringstream ss;
654 ss << "child " << i << ", ";
655
656 indent_ += options_.indent_size;
657 WriteIndented(ss.str());
658 RETURN_NOT_OK(PrintField(*type.field(i)));
659 indent_ -= options_.indent_size;
660 }
661 return Status::OK();
662}
663
664Status SchemaPrinter::PrintField(const Field& field) {
665 Write(field.name());

Callers

nothing calls this directly

Calls 6

WriteFunction · 0.85
strMethod · 0.80
OKFunction · 0.70
ToStringMethod · 0.45
num_fieldsMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected