| 413 | } |
| 414 | |
| 415 | void Column::checkpointColumnChunkInPlace(SegmentState& state, |
| 416 | const ColumnCheckpointState& checkpointState, PageAllocator& pageAllocator) const { |
| 417 | for (auto& segmentCheckpointState : checkpointState.segmentCheckpointStates) { |
| 418 | DASSERT(segmentCheckpointState.numRows > 0); |
| 419 | state.column->writeSegment(checkpointState.persistentData, state, |
| 420 | segmentCheckpointState.offsetInSegment, segmentCheckpointState.chunkData, |
| 421 | segmentCheckpointState.startRowInData, segmentCheckpointState.numRows); |
| 422 | } |
| 423 | // writeSegment doesn't update numValues, just the metadata |
| 424 | // TODO(bmwinger): either have all writes update numValues, or have writeSegment update it |
| 425 | // directly |
| 426 | checkpointState.persistentData.resetNumValuesFromMetadata(); |
| 427 | if (nullColumn) { |
| 428 | checkpointNullData(checkpointState, pageAllocator); |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | void Column::checkpointNullData(const ColumnCheckpointState& checkpointState, |
| 433 | PageAllocator& pageAllocator) const { |
no test coverage detected