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

Function AccumulateLayouts

cpp/src/arrow/array/data.cc:744–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742namespace {
743
744void AccumulateLayouts(const std::shared_ptr<DataType>& type,
745 std::vector<DataTypeLayout>* layouts) {
746 layouts->push_back(type->layout());
747 const DataType* type_for_children = type.get();
748 if (type->id() == Type::EXTENSION) {
749 const auto& ext_type = checked_cast<const ExtensionType&>(*type);
750 type_for_children = ext_type.storage_type().get();
751 }
752 for (const auto& child : type_for_children->fields()) {
753 AccumulateLayouts(child->type(), layouts);
754 }
755}
756
757void AccumulateArrayData(const std::shared_ptr<ArrayData>& data,
758 std::vector<std::shared_ptr<ArrayData>>* out) {

Callers 1

GetArrayViewFunction · 0.85

Calls 7

push_backMethod · 0.80
storage_typeMethod · 0.80
layoutMethod · 0.45
getMethod · 0.45
idMethod · 0.45
fieldsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected