diff options
author | David Storch <david.storch@10gen.com> | 2019-02-26 17:51:45 -0500 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2019-03-11 10:14:57 -0400 |
commit | c0492bf5b77542cbacd73bcfe1e0c999b8078c07 (patch) | |
tree | 47735a9c7aaa58b9af8d646be99700be1426ada9 /src/mongo/db/pipeline/document_source.h | |
parent | 9a7cfb73da3a86d1c20f674140f1f908e2bae0c8 (diff) | |
download | mongo-c0492bf5b77542cbacd73bcfe1e0c999b8078c07.tar.gz |
SERVER-40056 Remove partial implementation of streaming $group.
The streaming $group optimization was never fully implemented,
so the code was disabled. This patch removes the dead code, including
DocumentSource::getOutputSorts().
Diffstat (limited to 'src/mongo/db/pipeline/document_source.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mongo/db/pipeline/document_source.h b/src/mongo/db/pipeline/document_source.h index 1e6efa6dc54..f3f67db8e0a 100644 --- a/src/mongo/db/pipeline/document_source.h +++ b/src/mongo/db/pipeline/document_source.h @@ -328,26 +328,6 @@ public: */ static void registerParser(std::string name, Parser parser); - /** - * Given a BSONObj, construct a BSONObjSet consisting of all prefixes of that object. For - * example, given {a: 1, b: 1, c: 1}, this will return a set: {{a: 1}, {a: 1, b: 1}, {a: 1, b: - * 1, c: 1}}. - */ - static BSONObjSet allPrefixes(BSONObj obj); - - /** - * Given a BSONObjSet, where each BSONObj represents a sort key, return the BSONObjSet that - * results from truncating each sort key before the first path that is a member of 'fields', or - * is a child of a member of 'fields'. - */ - static BSONObjSet truncateSortSet(const BSONObjSet& sorts, const std::set<std::string>& fields); - - // - // Optimization API - These methods give each DocumentSource an opportunity to apply any local - // optimizations, and to provide any rule-based optimizations to swap with or absorb subsequent - // stages. - // - private: /** * Attempt to push a match stage from directly ahead of the current stage given by itr to before @@ -397,13 +377,6 @@ public: // whether or not a blocking group can be upgraded to a streaming group). // - /** - * Gets a BSONObjSet representing the sort order(s) of the output of the stage. - */ - virtual BSONObjSet getOutputSorts() { - return SimpleBSONObjComparator::kInstance.makeBSONObjSet(); - } - struct GetModPathsReturn { enum class Type { // No information is available about which paths are modified. |