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

Method getBufferSize

src/storage/table/column_chunk_data.cpp:349–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349uint64_t ColumnChunkData::getBufferSize(uint64_t capacity_) const {
350 switch (dataType.getLogicalTypeID()) {
351 case LogicalTypeID::BOOL: {
352 // 8 values per byte, and we need a buffer size which is a
353 // multiple of 8 bytes.
354 return ceil(capacity_ / 8.0 / 8.0) * 8;
355 }
356 default: {
357 return numBytesPerValue * capacity_;
358 }
359 }
360}
361
362void ColumnChunkData::initializeScanState(SegmentState& state, const Column* column) const {
363 if (nullData) {

Callers 1

writeMethod · 0.80

Calls 2

getLogicalTypeIDMethod · 0.80
getBufferMethod · 0.80

Tested by

no test coverage detected