| 140 | } |
| 141 | |
| 142 | void NodeGroup::merge(Transaction*, std::unique_ptr<ChunkedNodeGroup> chunkedGroup) { |
| 143 | DASSERT(chunkedGroup->getNumColumns() == dataTypes.size()); |
| 144 | for (auto i = 0u; i < chunkedGroup->getNumColumns(); i++) { |
| 145 | DASSERT(chunkedGroup->getColumnChunk(i).getDataType().getPhysicalType() == |
| 146 | dataTypes[i].getPhysicalType()); |
| 147 | } |
| 148 | const auto lock = chunkedGroups.lock(); |
| 149 | numRows += chunkedGroup->getNumRows(); |
| 150 | chunkedGroups.appendGroup(lock, std::move(chunkedGroup)); |
| 151 | } |
| 152 | |
| 153 | void NodeGroup::initializeScanState(const Transaction* transaction, TableScanState& state) const { |
| 154 | const auto lock = chunkedGroups.lock(); |
no test coverage detected