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

Function resizeGeneric

src/common/arrow/arrow_row_batch.cpp:113–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static void resizeGeneric(ArrowVector* vector, const LogicalType& type, int64_t capacity,
114 bool fallbackExtensionTypes) {
115 if (vector->capacity >= capacity) {
116 return;
117 }
118 while (vector->capacity < capacity) {
119 if (vector->capacity == 0) {
120 vector->capacity = 1;
121 } else {
122 vector->capacity *= 2;
123 }
124 }
125 resizeValidityBuffer(vector, vector->capacity);
126 resizeMainBuffer(vector, type, vector->capacity, fallbackExtensionTypes);
127}
128
129static void resizeBLOBVector(ArrowVector* vector, const LogicalType& type, int64_t capacity,
130 int64_t overflowCapacity, bool fallbackExtensionTypes) {

Callers 6

resizeBLOBVectorFunction · 0.85
resizeFixedListVectorFunction · 0.85
resizeListVectorFunction · 0.85
resizeStructVectorFunction · 0.85
resizeInternalIDVectorFunction · 0.85
resizeVectorFunction · 0.85

Calls 2

resizeValidityBufferFunction · 0.85
resizeMainBufferFunction · 0.85

Tested by

no test coverage detected