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

Method checkpointNullData

src/storage/table/column.cpp:432–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432void Column::checkpointNullData(const ColumnCheckpointState& checkpointState,
433 PageAllocator& pageAllocator) const {
434 std::vector<SegmentCheckpointState> nullSegmentCheckpointStates;
435 for (const auto& segmentCheckpointState : checkpointState.segmentCheckpointStates) {
436 DASSERT(segmentCheckpointState.chunkData.hasNullData());
437 nullSegmentCheckpointStates.emplace_back(*segmentCheckpointState.chunkData.getNullData(),
438 segmentCheckpointState.startRowInData, segmentCheckpointState.offsetInSegment,
439 segmentCheckpointState.numRows);
440 }
441 DASSERT(checkpointState.persistentData.hasNullData());
442 nullColumn->checkpointSegment(
443 ColumnCheckpointState(*checkpointState.persistentData.getNullData(),
444 std::move(nullSegmentCheckpointStates)),
445 pageAllocator, false);
446}
447
448std::vector<std::unique_ptr<ColumnChunkData>> Column::checkpointColumnChunkOutOfPlace(
449 const SegmentState& state, const ColumnCheckpointState& checkpointState,

Callers

nothing calls this directly

Calls 3

emplace_backMethod · 0.80
checkpointSegmentMethod · 0.45

Tested by

no test coverage detected