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

Method copyFromColLayoutStruct

src/common/types/value/value.cpp:742–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740}
741
742void Value::copyFromColLayoutStruct(const struct_entry_t& structEntry, ValueVector* vec) {
743 for (auto i = 0u; i < childrenSize; i++) {
744 children[i]->setNull(StructVector::getFieldVector(vec, i)->isNull(structEntry.pos));
745 if (!children[i]->isNull()) {
746 auto fieldVector = StructVector::getFieldVector(vec, i);
747 children[i]->copyFromColLayout(fieldVector->getData() +
748 fieldVector->getNumBytesPerValue() * structEntry.pos,
749 fieldVector.get());
750 }
751 }
752}
753
754void Value::copyFromUnion(const uint8_t* unionValue) {
755 auto childrenTypes = StructType::getFieldTypes(dataType);

Callers

nothing calls this directly

Calls 5

copyFromColLayoutMethod · 0.80
setNullMethod · 0.45
isNullMethod · 0.45
getDataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected