| 401 | } |
| 402 | |
| 403 | bool Column::isEndOffsetOutOfPagesCapacity(const ColumnChunkMetadata& metadata, |
| 404 | offset_t endOffset) const { |
| 405 | if (metadata.compMeta.compression != CompressionType::CONSTANT && |
| 406 | (metadata.compMeta.numValues(LBUG_PAGE_SIZE, dataType) * |
| 407 | metadata.getNumDataPages(dataType.getPhysicalType())) <= endOffset) { |
| 408 | // Note that for constant compression, `metadata.numPages` will be equal to 0. |
| 409 | // Thus, this function will always return true. |
| 410 | return true; |
| 411 | } |
| 412 | return false; |
| 413 | } |
| 414 | |
| 415 | void Column::checkpointColumnChunkInPlace(SegmentState& state, |
| 416 | const ColumnCheckpointState& checkpointState, PageAllocator& pageAllocator) const { |
no test coverage detected