diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2017-06-27 15:03:43 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2017-06-27 15:03:43 -0400 |
commit | beaeaa196e8b1d3e36dfccd55cfded8ddf95a205 (patch) | |
tree | cd96ebd38a956f8817c57e752c27969b8a3e54a5 /src/mongo/db/matcher/expression_parser.h | |
parent | 1871da3e8a38e7ac384c7bc0280017852f53d487 (diff) | |
download | mongo-beaeaa196e8b1d3e36dfccd55cfded8ddf95a205.tar.gz |
Revert "SERVER-29587: Create $_internalSchemaMinItems and $_internalSchemaMaxItems MatchExpressions"
This reverts commit a92eb118cc8500a9c4286e8ef28cb26ea3f4e238.
Diffstat (limited to 'src/mongo/db/matcher/expression_parser.h')
-rw-r--r-- | src/mongo/db/matcher/expression_parser.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mongo/db/matcher/expression_parser.h b/src/mongo/db/matcher/expression_parser.h index c39df98c77e..8141726251b 100644 --- a/src/mongo/db/matcher/expression_parser.h +++ b/src/mongo/db/matcher/expression_parser.h @@ -46,11 +46,6 @@ class OperationContext; class MatchExpressionParser { public: /** - * Constant double representation of 2^63. - */ - static const double kLongLongMaxPlusOneAsDouble; - - /** * caller has to maintain ownership obj * the tree has views (BSONElement) into obj */ @@ -61,17 +56,6 @@ public: return MatchExpressionParser(&extensionsCallback)._parse(obj, collator, topLevelCall); } - /** - * Parses a BSONElement of any numeric type into a positive long long, failing if the value - * is any of the following: - * - * - NaN - * - Too big or small to fit within a 64-bit signed integer. - * - A floating point number which is not integral. - */ - static StatusWith<long long> parseIntegerElementToPositiveLong(const char* name, - const BSONElement& elem); - private: MatchExpressionParser(const ExtensionsCallback* extensionsCallback) : _extensionsCallback(extensionsCallback) {} @@ -185,15 +169,6 @@ private: */ StatusWith<std::vector<uint32_t>> _parseBitPositionsArray(const BSONObj& theArray); - /** - * Parses the given BSONElement into a single integer argument and creates a MatchExpression - * of type 'T' that gets initialized with the resulting integer. - */ - template <class T> - StatusWithMatchExpression _parseInternalSchemaSingleIntegerArgument( - const char* name, const BSONElement& elem) const; - - // The maximum allowed depth of a query tree. Just to guard against stack overflow. static const int kMaximumTreeDepth; |