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

Method canAlwaysUpdateInPlace

src/storage/compression/compression.cpp:189–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189bool CompressionMetadata::canAlwaysUpdateInPlace() const {
190 switch (compression) {
191 case CompressionType::BOOLEAN_BITPACKING:
192 case CompressionType::UNCOMPRESSED: {
193 return true;
194 }
195 case CompressionType::CONSTANT:
196 case CompressionType::ALP:
197 case CompressionType::INTEGER_BITPACKING: {
198 return false;
199 }
200 default: {
201 throw common::StorageException(
202 "Unknown compression type with ID " + std::to_string((uint8_t)compression));
203 }
204 }
205}
206
207bool CompressionMetadata::canUpdateInPlace(const uint8_t* data, uint32_t pos, uint64_t numValues,
208 PhysicalTypeID physicalType, InPlaceUpdateLocalState& localUpdateState,

Callers 3

canCheckpointInPlaceMethod · 0.80
canIndexCommitInPlaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected