| 347 | } |
| 348 | |
| 349 | uint64_t ColumnChunkData::getBufferSize(uint64_t capacity_) const { |
| 350 | switch (dataType.getLogicalTypeID()) { |
| 351 | case LogicalTypeID::BOOL: { |
| 352 | // 8 values per byte, and we need a buffer size which is a |
| 353 | // multiple of 8 bytes. |
| 354 | return ceil(capacity_ / 8.0 / 8.0) * 8; |
| 355 | } |
| 356 | default: { |
| 357 | return numBytesPerValue * capacity_; |
| 358 | } |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | void ColumnChunkData::initializeScanState(SegmentState& state, const Column* column) const { |
| 363 | if (nullData) { |
no test coverage detected