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

Function GetFieldsFromArray

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

Source from the content-addressed store, hash-verified

1205 DictionaryMemo* dictionary_memo);
1206
1207Result<FieldVector> GetFieldsFromArray(const RjArray& json_fields,
1208 FieldPosition parent_pos,
1209 DictionaryMemo* dictionary_memo) {
1210 FieldVector fields(json_fields.Size());
1211 for (auto [json_field, field, i] : Zip(json_fields, fields, Enumerate<int>)) {
1212 ARROW_ASSIGN_OR_RAISE(field,
1213 GetField(json_field, parent_pos.child(i), dictionary_memo));
1214 }
1215 return fields;
1216}
1217
1218Status ParseDictionary(const RjObject& obj, int64_t* id, bool* is_ordered,
1219 std::shared_ptr<DataType>* index_type) {

Callers 1

ARROW_ASSIGN_OR_RAISEFunction · 0.85

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