MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / checkpointColumnChunkInPlace

Method checkpointColumnChunkInPlace

src/storage/table/column.cpp:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void 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
432void Column::checkpointNullData(const ColumnCheckpointState& checkpointState,
433 PageAllocator& pageAllocator) const {

Callers 1

checkpointSegmentMethod · 0.80

Calls 2

writeSegmentMethod · 0.45

Tested by

no test coverage detected