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

Method isEndOffsetOutOfPagesCapacity

src/storage/table/column.cpp:403–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403bool 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
415void Column::checkpointColumnChunkInPlace(SegmentState& state,
416 const ColumnCheckpointState& checkpointState, PageAllocator& pageAllocator) const {

Callers 1

canIndexCommitInPlaceMethod · 0.80

Calls 3

numValuesMethod · 0.45
getNumDataPagesMethod · 0.45
getPhysicalTypeMethod · 0.45

Tested by

no test coverage detected