138862 : VectorBuffer(VectorBufferType::OPAQUE_BUFFER),
type(type_p),
capacity(capacity_p) {
138863 auto internal_type =
type.InternalType();
138864 switch (internal_type) {
138866
138868
138869 auto &child_type = ListType::GetChildType(
type);
138871 auto child_vector = make_uniq<Vector>(child_type, false, false);
138872 auxiliary = make_shared_ptr<VectorListBuffer>(std::move(child_vector));
138873 break;
138874 }
138875 case PhysicalType::ARRAY: {
138876 auto &child_type = ArrayType::GetChildType(
type);
138877 auto array_size = ArrayType::GetSize(
type);
138878 child_caches.push_back(make_buffer<VectorCacheBuffer>(allocator, child_type, array_size *
capacity));
138879 auto child_vector = make_uniq<Vector>(child_type,
true,
false, array_size *
capacity);
138880 auxiliary = make_shared_ptr<VectorArrayBuffer>(std::move(child_vector), array_size,
capacity);
138881 break;
138882 }
138884 auto &child_types = StructType::GetChildTypes(
type);
138885 for (auto &child_type : child_types) {
138886 child_caches.push_back(make_buffer<VectorCacheBuffer>(allocator, child_type.second,
capacity));
138887 }
138888 auto struct_buffer = make_shared_ptr<VectorStructBuffer>(
type);
138890 break;
138891 }
138892 default:
138894 break;
138895 }
138896 }
vector< buffer_ptr< VectorBuffer > > child_caches
Child caches (if any). Used for nested types.
Definition duckdb.cpp:138969
LogicalType type
The type of the vector cache.
Definition duckdb.cpp:138965
buffer_ptr< VectorBuffer > auxiliary
Aux data for the vector (if any).
Definition duckdb.cpp:138971
idx_t capacity
Capacity of the vector.
Definition duckdb.cpp:138973
AllocatedData owned_data
Owned data.
Definition duckdb.cpp:138967
@ LIST
A list of some logical data type.
Definition duckdb.hpp:2813
@ STRUCT
Struct of logical types.
Definition duckdb.hpp:2816