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

Method getNextTuplesInternal

src/processor/operator/filter.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26bool Filter::getNextTuplesInternal(ExecutionContext* context) {
27 bool hasAtLeastOneSelectedValue = false;
28 do {
29 restoreSelVector(*state);
30 if (!children[0]->getNextTuple(context)) {
31 return false;
32 }
33 saveSelVector(*state);
34 hasAtLeastOneSelectedValue =
35 expressionEvaluator->select(state->getSelVectorUnsafe(), !state->isFlat());
36 } while (!hasAtLeastOneSelectedValue);
37 metrics->numOutputTuple.increase(state->getSelVector().getSelSize());
38 return true;
39}
40
41void NodeLabelFiler::initLocalStateInternal(ResultSet* /*resultSet_*/,
42 ExecutionContext* /*context*/) {

Callers

nothing calls this directly

Calls 9

getNextTupleMethod · 0.80
getSelSizeMethod · 0.80
getMutableBufferMethod · 0.80
setToFilteredMethod · 0.80
setSelSizeMethod · 0.80
selectMethod · 0.45
isFlatMethod · 0.45
increaseMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected