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

Function GetFieldsFromArray

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

Source from the content-addressed store, hash-verified

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