| 131 | } |
| 132 | |
| 133 | void 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 | |
| 154 | void ValueVector::copyFromVectorData(uint64_t dstPos, const ValueVector* srcVector, |
| 155 | uint64_t srcPos) { |
no test coverage detected