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

Method initLocalStateInternal

src/processor/operator/filter.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void Filter::initLocalStateInternal(ResultSet* resultSet, ExecutionContext* context) {
16 expressionEvaluator->init(*resultSet, context->clientContext);
17 if (dataChunkToSelectPos == INVALID_DATA_CHUNK_POS) {
18 // Filter a constant expression. Ideally we should fold all such expression at compile time.
19 // But there are many edge cases, so we keep this code path for robustness.
20 state = DataChunkState::getSingleValueDataChunkState();
21 } else {
22 state = resultSet->dataChunks[dataChunkToSelectPos]->state;
23 }
24}
25
26bool Filter::getNextTuplesInternal(ExecutionContext* context) {
27 bool hasAtLeastOneSelectedValue = false;

Callers

nothing calls this directly

Calls 3

initMethod · 0.45
getMethod · 0.45
getValueVectorMethod · 0.45

Tested by

no test coverage detected