| 502 | } |
| 503 | |
| 504 | void ColumnChunkData::resizeWithoutPreserve(uint64_t newCapacity) { |
| 505 | const auto numBytesAfterResize = getBufferSize(newCapacity); |
| 506 | if (numBytesAfterResize > getBufferSize()) { |
| 507 | auto resizedBuffer = buffer->getMemoryManager()->allocateBuffer(false, numBytesAfterResize); |
| 508 | buffer = std::move(resizedBuffer); |
| 509 | } |
| 510 | if (nullData) { |
| 511 | nullData->resize(newCapacity); |
| 512 | } |
| 513 | if (newCapacity > capacity) { |
| 514 | capacity = newCapacity; |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | void ColumnChunkData::populateWithDefaultVal(ExpressionEvaluator& defaultEvaluator, |
| 519 | uint64_t& numValues_, ColumnStats* newColumnStats) { |
nothing calls this directly
no test coverage detected