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

Method appendValues

src/storage/table/column.cpp:390–401  ·  view source on GitHub ↗

Append to the end of the chunk.

Source from the content-addressed store, hash-verified

388
389// Append to the end of the chunk.
390offset_t Column::appendValues(ColumnChunkData& persistentChunk, SegmentState& state,
391 const uint8_t* data, const NullMask* nullChunkData, offset_t numValues) const {
392 auto& metadata = persistentChunk.getMetadata();
393 const auto startOffset = metadata.numValues;
394 writeValuesInternal(state, metadata.numValues, data, nullChunkData, 0 /*dataOffset*/,
395 numValues);
396
397 auto [minWritten, maxWritten] = getMinMaxStorageValue(data, 0 /*offset*/, numValues,
398 dataType.getPhysicalType(), nullChunkData);
399 updateStatistics(metadata, startOffset + numValues - 1, minWritten, maxWritten);
400 return startOffset;
401}
402
403bool Column::isEndOffsetOutOfPagesCapacity(const ColumnChunkMetadata& metadata,
404 offset_t endOffset) const {

Callers 1

appendMethod · 0.80

Calls 3

getMinMaxStorageValueFunction · 0.85
getMetadataMethod · 0.80
getPhysicalTypeMethod · 0.45

Tested by

no test coverage detected