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

Method Initialize

cpp/src/arrow/json/parser.cc:731–737  ·  view source on GitHub ↗

\brief Set up builders using an expected Schema

Source from the content-addressed store, hash-verified

729
730 /// \brief Set up builders using an expected Schema
731 Status Initialize(const std::shared_ptr<Schema>& s) {
732 auto type = struct_({});
733 if (s) {
734 type = struct_(s->fields());
735 }
736 return builder_set_.MakeBuilder(*type, 0, &builder_);
737 }
738
739 Status Finish(std::shared_ptr<Array>* parsed) override {
740 std::shared_ptr<Array> scalar_values;

Callers 1

MakeMethod · 0.45

Calls 3

struct_Function · 0.85
fieldsMethod · 0.45
MakeBuilderMethod · 0.45

Tested by

no test coverage detected