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

Method append

src/storage/table/string_chunk_data.cpp:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void StringChunkData::append(ValueVector* vector, const SelectionView& selView) {
75 selView.forEach([&](auto pos) {
76 // index is stored in main chunk, data is stored in the data chunk
77 DASSERT(vector->dataType.getPhysicalType() == PhysicalTypeID::STRING ||
78 vector->dataType.getPhysicalType() == PhysicalTypeID::JSON);
79 // index is stored in main chunk, data is stored in the data chunk
80 nullData->setNull(numValues, vector->isNull(pos));
81 auto dstPos = numValues;
82 updateNumValues(numValues + 1);
83 if (!vector->isNull(pos)) {
84 auto str = vector->getValue<string_t>(pos);
85 setValueFromString(str.getAsStringView(), dstPos);
86 }
87 });
88}
89
90void StringChunkData::append(const ColumnChunkData* other, offset_t startPosInOtherChunk,
91 uint32_t numValuesToAppend) {

Callers

nothing calls this directly

Calls 7

getValue<string_t>Method · 0.80
getAsStringViewMethod · 0.80
getLogicalTypeIDMethod · 0.80
forEachMethod · 0.45
getPhysicalTypeMethod · 0.45
setNullMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected