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

Method ImportField

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

Source from the content-addressed store, hash-verified

100 }
101
102 void ImportField(const FieldPosition& pos, const Field& field) {
103 const DataType* type = field.type().get();
104 if (type->id() == Type::EXTENSION) {
105 type = checked_cast<const ExtensionType&>(*type).storage_type().get();
106 }
107 if (type->id() == Type::DICTIONARY) {
108 InsertPath(pos);
109 // Import nested dictionaries
110 ImportFields(pos,
111 checked_cast<const DictionaryType&>(*type).value_type()->fields());
112 } else {
113 ImportFields(pos, type->fields());
114 }
115 }
116
117 void InsertPath(const FieldPosition& pos) {
118 const int64_t id = field_path_to_id.size();

Callers

nothing calls this directly

Calls 6

storage_typeMethod · 0.80
getMethod · 0.45
typeMethod · 0.45
idMethod · 0.45
fieldsMethod · 0.45
value_typeMethod · 0.45

Tested by

no test coverage detected