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

Method AppendValues

cpp/src/arrow/json/from_string.cc:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102class ConcreteConverter : public JSONConverter {
103 public:
104 Result<int32_t> AppendValues(sj::array& json_array) final {
105 auto self = static_cast<Derived*>(this);
106 int32_t num_elements = 0;
107 for (auto element : json_array) {
108 ARROW_ASSIGN_OR_RAISE(auto value,
109 internal::ResolveSimdjsonResult<sj::value>(
110 element, "Could not iterate elements of JSON array: "));
111 RETURN_NOT_OK(self->AppendValue(value));
112 num_elements++;
113 }
114 return num_elements;
115 }
116
117 const std::shared_ptr<DataType>& value_type() {
118 if (type_->id() != Type::DICTIONARY) {

Callers 3

AppendValueMethod · 0.45
ArrayFromJSONStringFunction · 0.45
TESTFunction · 0.45

Calls 1

AppendValueMethod · 0.45

Tested by 1

TESTFunction · 0.36