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

Method getMergedColumnChunkStats

src/storage/table/column_chunk.cpp:197–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197MergedColumnChunkStats ColumnChunk::getMergedColumnChunkStats() const {
198 DASSERT(!updateInfo.isSet());
199 auto baseStats = MergedColumnChunkStats{ColumnChunkStats{}, true, true};
200 for (auto& segment : data) {
201 // TODO: Replace with a function that modifies the existing stats in-place?
202 auto segmentStats = segment->getMergedColumnChunkStats();
203 baseStats.merge(segmentStats, segment->getDataType().getPhysicalType());
204 }
205 return baseStats;
206}
207
208void ColumnChunk::serialize(Serializer& serializer) const {
209 serializer.writeDebuggingInfo("enable_compression");

Callers 1

getZoneMapResultFunction · 0.45

Calls 4

getDataTypeMethod · 0.80
isSetMethod · 0.45
mergeMethod · 0.45
getPhysicalTypeMethod · 0.45

Tested by

no test coverage detected