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

Function uncompressedGetMetadata

src/storage/table/column_chunk_metadata.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55ColumnChunkMetadata uncompressedGetMetadata(PhysicalTypeID dataType, uint64_t numValues,
56 StorageValue min, StorageValue max) {
57 auto numPages = 0;
58 if (getDataTypeSizeInChunk(dataType) > 0) {
59 const auto numValuesPerPage = Uncompressed::numValues(LBUG_PAGE_SIZE, dataType);
60 numPages = ceilDiv(numValues, numValuesPerPage);
61 }
62 return ColumnChunkMetadata(INVALID_PAGE_IDX, numPages, numValues,
63 CompressionMetadata(min, max, CompressionType::UNCOMPRESSED));
64}
65
66ColumnChunkMetadata booleanGetMetadata(uint64_t numValues, StorageValue min, StorageValue max) {
67 return ColumnChunkMetadata(INVALID_PAGE_IDX,

Callers 2

operator()Method · 0.85
flushALPExceptionsFunction · 0.85

Calls 4

getDataTypeSizeInChunkFunction · 0.85
ceilDivFunction · 0.85
ColumnChunkMetadataClass · 0.50
CompressionMetadataClass · 0.50

Tested by

no test coverage detected