MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / LIST>

Method LIST>

src/common/arrow/arrow_row_batch.cpp:350–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348
349template<>
350void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::LIST>(ArrowVector* vector,
351 const Value& value, std::int64_t pos, bool fallbackExtensionTypes) {
352 auto offsets = (std::uint32_t*)vector->data.data();
353 auto numElements = value.childrenSize;
354 if (pos == 0) {
355 offsets[pos] = 0;
356 }
357 offsets[pos + 1] = offsets[pos] + numElements;
358 std::vector<LogicalType> typeVec;
359 typeVec.push_back(ListType::getChildType(value.getDataType()).copy());
360 resizeChildVectors(vector, typeVec, offsets[pos + 1] + 1, fallbackExtensionTypes);
361 for (auto i = 0u; i < numElements; i++) {
362 appendValue(vector->childData[0].get(), *value.children[i], fallbackExtensionTypes);
363 }
364}
365
366template<>
367void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::ARRAY>(ArrowVector* vector,

Callers

nothing calls this directly

Calls 10

getChildTypeFunction · 0.85
resizeChildVectorsFunction · 0.85
setBitToZeroFunction · 0.85
createArrayFromVectorFunction · 0.85
getDataTypeMethod · 0.80
dataMethod · 0.45
push_backMethod · 0.45
copyMethod · 0.45
getMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected