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

Method update

src/storage/table/column_chunk_stats.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace storage {
10
11void ColumnChunkStats::update(const ColumnChunkData& data, uint64_t offset, uint64_t numValues,
12 common::PhysicalTypeID physicalType) {
13 const bool isStorageValueType =
14 common::TypeUtils::visit(physicalType, []<typename T>(T) { return StorageValueType<T>; });
15 if (isStorageValueType || physicalType == common::PhysicalTypeID::INTERNAL_ID) {
16 auto [minVal, maxVal] = getMinMaxStorageValue(data, offset, numValues, physicalType);
17 update(minVal, maxVal, physicalType);
18 }
19}
20
21void ColumnChunkStats::update(const common::ValueVector& data, uint64_t offset, uint64_t numValues,
22 common::PhysicalTypeID physicalType) {

Callers 1

mergeMethod · 0.45

Calls 4

getMinMaxStorageValueFunction · 0.85
updateFunction · 0.85
gtMethod · 0.80
visitFunction · 0.50

Tested by

no test coverage detected