MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / resizeStructVector

Function resizeStructVector

src/common/arrow/arrow_row_batch.cpp:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static void resizeStructVector(ArrowVector* vector, const LogicalType& type, int64_t capacity,
153 bool fallbackExtensionTypes) {
154 resizeGeneric(vector, type, capacity, fallbackExtensionTypes);
155 std::vector<LogicalType> typeVec;
156 for (auto i : StructType::getFieldTypes(type)) {
157 typeVec.push_back(i->copy());
158 }
159 resizeChildVectors(vector, typeVec, vector->capacity, fallbackExtensionTypes);
160}
161
162static void resizeUnionVector(ArrowVector* vector, const LogicalType& type, int64_t capacity,
163 bool fallbackExtensionTypes) {

Callers 1

resizeVectorFunction · 0.85

Calls 4

resizeGenericFunction · 0.85
resizeChildVectorsFunction · 0.85
push_backMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected