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

Method VisitField

cpp/src/arrow/ipc/dictionary.cc:357–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 Status VisitField(FieldPosition field_pos, ArrayData* data) {
358 const DataType* type = data->type.get();
359 if (type->id() == Type::EXTENSION) {
360 type = checked_cast<const ExtensionType&>(*type).storage_type().get();
361 }
362 if (type->id() == Type::DICTIONARY) {
363 ARROW_ASSIGN_OR_RAISE(const int64_t id,
364 memo_.fields().GetFieldId(field_pos.path()));
365 ARROW_ASSIGN_OR_RAISE(data->dictionary, memo_.GetDictionary(id, pool_));
366 // Resolve nested dictionary data
367 RETURN_NOT_OK(VisitField(field_pos, data->dictionary.get()));
368 }
369 // Resolve child data
370 return VisitChildren(data->child_data, field_pos);
371 }
372};
373
374} // namespace

Callers

nothing calls this directly

Calls 5

storage_typeMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
getMethod · 0.45
idMethod · 0.45
GetDictionaryMethod · 0.45

Tested by

no test coverage detected