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

Method copyFromVectorData

src/common/vector/value_vector.cpp:133–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void ValueVector::copyFromVectorData(uint8_t* dstData, const ValueVector* srcVector,
134 const uint8_t* srcVectorData) {
135 DASSERT(srcVector->dataType.getPhysicalType() == dataType.getPhysicalType());
136 switch (srcVector->dataType.getPhysicalType()) {
137 case PhysicalTypeID::STRUCT: {
138 StructVector::copyFromVectorData(this, dstData, srcVector, srcVectorData);
139 } break;
140 case PhysicalTypeID::ARRAY:
141 case PhysicalTypeID::LIST: {
142 ListVector::copyFromVectorData(this, dstData, srcVector, srcVectorData);
143 } break;
144 case PhysicalTypeID::STRING:
145 case PhysicalTypeID::JSON: {
146 StringVector::addString(this, *(string_t*)dstData, *(string_t*)srcVectorData);
147 } break;
148 default: {
149 memcpy(dstData, srcVectorData, srcVector->getNumBytesPerValue());
150 }
151 }
152}
153
154void ValueVector::copyFromVectorData(uint64_t dstPos, const ValueVector* srcVector,
155 uint64_t srcPos) {

Callers 15

resolveNestedVectorFunction · 0.80
bindCastToUnionFunctionFunction · 0.80
execFuncFunction · 0.80
execFuncFunction · 0.80
tableFuncFunction · 0.80
operationMethod · 0.80
operationMethod · 0.80
operationMethod · 0.80
execFuncMethod · 0.80

Calls 12

setNullFunction · 0.85
addListFunction · 0.85
getFieldVectorsFunction · 0.85
isNullFunction · 0.50
getDataFunction · 0.50
getNumBytesPerValueFunction · 0.50
getDataVectorFunction · 0.50
getPhysicalTypeMethod · 0.45
isNullMethod · 0.45
getDataMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected