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

Method flushData

src/storage/table/column.cpp:182–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182ColumnChunkMetadata Column::flushData(const ColumnChunkData& chunkData,
183 PageAllocator& pageAllocator) {
184 DASSERT(chunkData.sanityCheck());
185 const auto preScanMetadata = chunkData.getMetadataToFlush();
186 auto allocatedBlock = pageAllocator.allocatePageRange(preScanMetadata.getNumPages());
187 return chunkData.flushBuffer(pageAllocator, allocatedBlock, preScanMetadata);
188}
189
190void Column::scan(const ChunkState& state, offset_t startOffsetInChunk, offset_t length,
191 ValueVector* resultVector, uint64_t offsetInVector) const {

Callers

nothing calls this directly

Calls 5

getMetadataToFlushMethod · 0.80
flushBufferMethod · 0.80
sanityCheckMethod · 0.45
allocatePageRangeMethod · 0.45
getNumPagesMethod · 0.45

Tested by

no test coverage detected