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

Method scanValue

src/storage/table/dictionary_column.cpp:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void DictionaryColumn::scanValue(const SegmentState& dataState, uint64_t startOffset,
172 uint64_t length, ValueVector* resultVector, uint64_t offsetInVector) const {
173 // Add string to vector first and read directly into the vector
174 auto& str = StringVector::reserveString(resultVector, offsetInVector, length);
175 dataColumn->scanSegment(dataState, startOffset, length, (uint8_t*)str.getData());
176 // Update prefix to match the scanned string data
177 if (!string_t::isShortString(str.len)) {
178 memcpy(str.prefix, str.getData(), string_t::PREFIX_LENGTH);
179 }
180}
181
182void DictionaryColumn::scanValue(const SegmentState& dataState, uint64_t startOffset,
183 uint64_t length, StringChunkData* result, uint64_t offsetInResult) const {

Callers

nothing calls this directly

Calls 10

isShortStringFunction · 0.85
getStringDataChunkMethod · 0.80
getOffsetChunkMethod · 0.80
getIndexColumnChunkMethod · 0.80
scanSegmentMethod · 0.45
getDataMethod · 0.45
getCapacityMethod · 0.45
getNumValuesMethod · 0.45
resizeMethod · 0.45
setNumValuesMethod · 0.45

Tested by

no test coverage detected