| 21 | } |
| 22 | |
| 23 | void FactorizedTableSchema::appendColumn(ColumnSchema column) { |
| 24 | numBytesForDataPerTuple += column.getNumBytes(); |
| 25 | columns.push_back(std::move(column)); |
| 26 | colOffsets.push_back( |
| 27 | colOffsets.empty() ? 0 : colOffsets.back() + getColumn(columns.size() - 2)->getNumBytes()); |
| 28 | numBytesForNullMapPerTuple = NullBuffer::getNumBytesForNullValues(getNumColumns()); |
| 29 | numBytesPerTuple = numBytesForDataPerTuple + numBytesForNullMapPerTuple; |
| 30 | } |
| 31 | |
| 32 | bool FactorizedTableSchema::operator==(const FactorizedTableSchema& other) const { |
| 33 | if (columns.size() != other.columns.size()) { |
no test coverage detected