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

Method scanSegment

src/storage/table/string_column.cpp:122–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void StringColumn::scanSegment(const SegmentState& state, offset_t startOffsetInChunk,
123 row_idx_t numValuesToScan, ValueVector* resultVector, offset_t offsetInResult) const {
124 if (nullColumn) {
125 DASSERT(state.nullState);
126 nullColumn->scanSegment(*state.nullState, startOffsetInChunk, numValuesToScan, resultVector,
127 offsetInResult);
128 }
129
130 DASSERT(resultVector->dataType.getPhysicalType() == PhysicalTypeID::STRING ||
131 resultVector->dataType.getPhysicalType() == PhysicalTypeID::JSON);
132 if (!resultVector->state || resultVector->state->getSelVector().isUnfiltered()) {
133 scanUnfiltered(state, startOffsetInChunk, numValuesToScan, resultVector, offsetInResult);
134 } else {
135 scanFiltered(state, startOffsetInChunk, resultVector, offsetInResult);
136 }
137}
138
139void StringColumn::scanSegment(const SegmentState& state, ColumnChunkData* resultChunk,
140 common::offset_t startOffsetInSegment, common::row_idx_t numValuesToScan) const {

Callers 3

lookupInternalMethod · 0.45
scanUnfilteredMethod · 0.45
scanFilteredMethod · 0.45

Calls 15

RUNTIME_CHECKFunction · 0.85
isUnfilteredMethod · 0.80
getDataTypeMethod · 0.80
getIndexColumnChunkMethod · 0.80
getOffsetChunkMethod · 0.80
emplace_backMethod · 0.80
getPhysicalTypeMethod · 0.45
getNumValuesMethod · 0.45
setNumValuesMethod · 0.45
scanMethod · 0.45
isNullMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected