Append to the end of the chunk.
| 388 | |
| 389 | // Append to the end of the chunk. |
| 390 | offset_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 | |
| 403 | bool Column::isEndOffsetOutOfPagesCapacity(const ColumnChunkMetadata& metadata, |
| 404 | offset_t endOffset) const { |
no test coverage detected