diff options
Diffstat (limited to 'src/mongo/db/query/sbe_stage_builder_helpers.h')
-rw-r--r-- | src/mongo/db/query/sbe_stage_builder_helpers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/query/sbe_stage_builder_helpers.h b/src/mongo/db/query/sbe_stage_builder_helpers.h index f79ff0911c9..005689741a9 100644 --- a/src/mongo/db/query/sbe_stage_builder_helpers.h +++ b/src/mongo/db/query/sbe_stage_builder_helpers.h @@ -165,6 +165,12 @@ std::unique_ptr<sbe::EExpression> buildMultiBranchConditionalFromCaseValuePairs( std::vector<CaseValuePair> caseValuePairs, std::unique_ptr<sbe::EExpression> defaultValue); /** + * Given a vector of 'checks', all of which return true/false, accumulate them using 'op'. + */ +std::unique_ptr<sbe::EExpression> accumulateChecks( + std::vector<std::unique_ptr<sbe::EExpression>> checks, sbe::EPrimBinary::Op op); + +/** * Insert a limit stage on top of the 'input' stage. */ std::unique_ptr<sbe::PlanStage> makeLimitTree(std::unique_ptr<sbe::PlanStage> inputStage, |