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

Function GetFieldsFromArray

cpp/src/arrow/integration/json_internal.cc:1212–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210 DictionaryMemo* dictionary_memo);
1211
1212Result<FieldVector> GetFieldsFromArray(const JsonArray& json_fields,
1213 FieldPosition parent_pos,
1214 DictionaryMemo* dictionary_memo) {
1215 FieldVector fields(json_fields.size());
1216 for (auto [json_field, field, i] : Zip(json_fields, fields, Enumerate<int>)) {
1217 ARROW_ASSIGN_OR_RAISE(field,
1218 GetField(json_field, parent_pos.child(i), dictionary_memo));
1219 }
1220 return fields;
1221}
1222
1223Status ParseDictionary(const JsonObject& obj, int64_t* id, bool* is_ordered,
1224 std::shared_ptr<DataType>* index_type) {

Callers

nothing calls this directly

Calls 5

ZipClass · 0.85
GetFieldFunction · 0.85
childMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected