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

Method STRING>

src/common/arrow/arrow_row_batch.cpp:311–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309
310template<>
311void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::STRING>(ArrowVector* vector,
312 const Value& value, std::int64_t pos, bool) {
313 auto offsets = (std::uint32_t*)vector->data.data();
314 auto strLength = value.strVal.length();
315 if (pos == 0) {
316 offsets[pos] = 0;
317 }
318 offsets[pos + 1] = offsets[pos] + strLength;
319 vector->overflow.resize(offsets[pos + 1] + 1);
320 std::memcpy(vector->overflow.data() + offsets[pos], value.strVal.data(), strLength);
321}
322
323template<>
324void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::UUID>(ArrowVector* vector,

Callers

nothing calls this directly

Calls 6

setBitToZeroFunction · 0.85
createArrayFromVectorFunction · 0.85
lengthMethod · 0.80
dataMethod · 0.45
resizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected