diff options
author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2021-07-27 18:41:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-27 19:12:20 +0000 |
commit | 8068b7bedaf39a182af31c2c7e0a7f6d992555e9 (patch) | |
tree | 6847ec2d6b9891c26ee10eb5b3312c632d042912 /src/mongo/db/pipeline/pipeline.h | |
parent | 0a87aa5ceb6be19c5a6e16d5a525ecb2ad0e9580 (diff) | |
download | mongo-8068b7bedaf39a182af31c2c7e0a7f6d992555e9.tar.gz |
SERVER-55239 Support 2dsphere index on time-series collection metadata fields
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.h')
-rw-r--r-- | src/mongo/db/pipeline/pipeline.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mongo/db/pipeline/pipeline.h b/src/mongo/db/pipeline/pipeline.h index 1bff0d2e64c..eded6e32740 100644 --- a/src/mongo/db/pipeline/pipeline.h +++ b/src/mongo/db/pipeline/pipeline.h @@ -342,6 +342,16 @@ public: StringData targetStageName, std::function<bool(const DocumentSource* const)> predicate); /** + * Performs common validation for top-level or facet pipelines. Throws if the pipeline is + * invalid. + * + * Includes checking for illegal stage positioning. For example, $out must be at the end, while + * a $match stage with a text query must be at the start. Note that this method accepts an + * initial source as the first stage, which is illegal for $facet pipelines. + */ + void validateCommon(bool alreadyOptimized) const; + + /** * PipelineD is a "sister" class that has additional functionality for the Pipeline. It exists * because of linkage requirements. Pipeline needs to function in mongod and mongos. PipelineD * contains extra functionality required in mongod, and which can't appear in mongos because the @@ -373,16 +383,6 @@ private: static void stitch(SourceContainer* container); /** - * Performs common validation for top-level or facet pipelines. Throws if the pipeline is - * invalid. - * - * Includes checking for illegal stage positioning. For example, $out must be at the end, while - * a $match stage with a text query must be at the start. Note that this method accepts an - * initial source as the first stage, which is illegal for $facet pipelines. - */ - void validateCommon() const; - - /** * Returns Status::OK if the pipeline can run on mongoS, or an error with a message explaining * why it cannot. */ |