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

Method UnwrapExtension

cpp/src/arrow/c/bridge.cc:251–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 const DataType* UnwrapExtension(const DataType* type) {
252 if (type->id() == Type::EXTENSION) {
253 const auto& ext_type = checked_cast<const ExtensionType&>(*type);
254 additional_metadata_.reserve(2);
255 additional_metadata_.emplace_back(kExtensionTypeKeyName, ext_type.extension_name());
256 additional_metadata_.emplace_back(kExtensionMetadataKeyName, ext_type.Serialize());
257 return ext_type.storage_type().get();
258 }
259 return type;
260 }
261
262 Status ExportFormat(const DataType& type) {
263 if (type.id() == Type::DICTIONARY) {

Callers

nothing calls this directly

Calls 7

emplace_backMethod · 0.80
storage_typeMethod · 0.80
idMethod · 0.45
reserveMethod · 0.45
extension_nameMethod · 0.45
SerializeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected