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

Method copyToRowData

src/common/vector/value_vector.cpp:112–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void ValueVector::copyToRowData(uint32_t pos, uint8_t* rowData,
113 InMemOverflowBuffer* rowOverflowBuffer) const {
114 switch (dataType.getPhysicalType()) {
115 case PhysicalTypeID::STRUCT: {
116 StructVector::copyToRowData(this, pos, rowData, rowOverflowBuffer);
117 } break;
118 case PhysicalTypeID::ARRAY:
119 case PhysicalTypeID::LIST: {
120 ListVector::copyToRowData(this, pos, rowData, rowOverflowBuffer);
121 } break;
122 case PhysicalTypeID::STRING:
123 case PhysicalTypeID::JSON: {
124 StringVector::copyToRowData(this, pos, rowData, rowOverflowBuffer);
125 } break;
126 default: {
127 auto dataTypeSize = LogicalTypeUtils::getRowLayoutSize(dataType);
128 memcpy(rowData, getData() + pos * dataTypeSize, dataTypeSize);
129 }
130 }
131}
132
133void ValueVector::copyFromVectorData(uint8_t* dstData, const ValueVector* srcVector,
134 const uint8_t* srcVectorData) {

Calls 10

isShortStringFunction · 0.85
setNullFunction · 0.85
getFieldVectorsFunction · 0.85
getValue<string_t>Method · 0.80
allocateSpaceMethod · 0.80
getDataFunction · 0.50
getDataVectorFunction · 0.50
getPhysicalTypeMethod · 0.45
isNullMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected