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

Method initializeScanState

src/storage/table/string_chunk_data.cpp:136–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void StringChunkData::initializeScanState(SegmentState& state, const Column* column) const {
137 ColumnChunkData::initializeScanState(state, column);
138
139 auto* stringColumn = dynamic_cast_checked<const StringColumn*>(column);
140 state.childrenStates.resize(CHILD_COLUMN_COUNT);
141 indexColumnChunk->initializeScanState(state.childrenStates[INDEX_COLUMN_CHILD_READ_STATE_IDX],
142 stringColumn->getIndexColumn());
143 dictionaryChunk->getOffsetChunk()->initializeScanState(
144 state.childrenStates[OFFSET_COLUMN_CHILD_READ_STATE_IDX],
145 stringColumn->getDictionary().getOffsetColumn());
146 dictionaryChunk->getStringDataChunk()->initializeScanState(
147 state.childrenStates[DATA_COLUMN_CHILD_READ_STATE_IDX],
148 stringColumn->getDictionary().getDataColumn());
149}
150
151void StringChunkData::write(const ValueVector* vector, offset_t offsetInVector,
152 offset_t offsetInChunk) {

Callers

nothing calls this directly

Calls 7

getIndexColumnMethod · 0.80
getOffsetChunkMethod · 0.80
getDictionaryMethod · 0.80
getStringDataChunkMethod · 0.80
resizeMethod · 0.45
getOffsetColumnMethod · 0.45
getDataColumnMethod · 0.45

Tested by

no test coverage detected