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

Method MakeArray

cpp/src/arrow/extension/json.cc:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40std::string JsonExtensionType::Serialize() const { return ""; }
41
42std::shared_ptr<Array> JsonExtensionType::MakeArray(
43 std::shared_ptr<ArrayData> data) const {
44 DCHECK_EQ(data->type->id(), Type::EXTENSION);
45 DCHECK_EQ("arrow.json",
46 internal::checked_cast<const ExtensionType&>(*data->type).extension_name());
47 return std::make_shared<ExtensionArray>(data);
48}
49
50bool JsonExtensionType::IsSupportedStorageType(Type::type type_id) {
51 return type_id == Type::STRING || type_id == Type::STRING_VIEW ||

Callers 2

WrapArrayMethod · 0.45
TEST_FFunction · 0.45

Calls 2

idMethod · 0.45
extension_nameMethod · 0.45

Tested by 1

TEST_FFunction · 0.36