| 39 | } |
| 40 | |
| 41 | void FactorizedTableUtils::appendStringToTable(FactorizedTable* factorizedTable, |
| 42 | const std::string& outputMsg, MemoryManager* memoryManager) { |
| 43 | auto outputMsgVector = std::make_shared<ValueVector>(LogicalTypeID::STRING, memoryManager); |
| 44 | outputMsgVector->state = DataChunkState::getSingleValueDataChunkState(); |
| 45 | auto outputStr = string_t(); |
| 46 | outputStr.overflowPtr = |
| 47 | reinterpret_cast<uint64_t>(StringVector::getInMemOverflowBuffer(outputMsgVector.get()) |
| 48 | ->allocateSpace(outputMsg.length())); |
| 49 | outputStr.set(outputMsg); |
| 50 | outputMsgVector->setValue(0, outputStr); |
| 51 | factorizedTable->append(std::vector<ValueVector*>{outputMsgVector.get()}); |
| 52 | } |
| 53 | |
| 54 | void FactorizedTableUtils::appendNodeCopyResultToTable(FactorizedTable* factorizedTable, |
| 55 | const std::string& outputMsg, int64_t skippedDuplicatePKCount, |
nothing calls this directly
no test coverage detected