summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_geo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_geo.h')
-rw-r--r--src/mongo/db/matcher/expression_geo.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/mongo/db/matcher/expression_geo.h b/src/mongo/db/matcher/expression_geo.h
index b58904a7eff..bd3752399c8 100644
--- a/src/mongo/db/matcher/expression_geo.h
+++ b/src/mongo/db/matcher/expression_geo.h
@@ -73,8 +73,7 @@ private:
// e.g.
// { "$intersect" : { "$geometry" : { "type" : "Point", "coordinates": [ 40, 5 ] } } }
Status parseQuery(const BSONObj& obj);
- BSONObj redactGeoExpression(const BSONObj& obj,
- boost::optional<StringData> literalArgsReplacement);
+
// Name of the field in the query.
std::string field;
std::shared_ptr<GeometryContainer> geoContainer;
@@ -107,9 +106,7 @@ public:
virtual void debugString(StringBuilder& debug, int indentationLevel = 0) const;
- void appendSerializedRightHandSide(BSONObjBuilder* bob,
- const SerializationOptions& opts = {},
- bool includePath = true) const final;
+ BSONObj getSerializedRightHandSide() const final;
virtual bool equivalent(const MatchExpression* other) const;
@@ -209,9 +206,7 @@ public:
virtual void debugString(StringBuilder& debug, int indentationLevel = 0) const;
- void appendSerializedRightHandSide(BSONObjBuilder* bob,
- const SerializationOptions& opts = {},
- bool includePath = true) const final;
+ BSONObj getSerializedRightHandSide() const final;
virtual bool equivalent(const MatchExpression* other) const;
@@ -251,10 +246,8 @@ public:
TwoDPtInAnnulusExpression(const R2Annulus& annulus, StringData twoDPath)
: LeafMatchExpression(INTERNAL_2D_POINT_IN_ANNULUS, twoDPath), _annulus(annulus) {}
- void serialize(BSONObjBuilder* out,
- const SerializationOptions& opts = {},
- bool includePath = true) const final {
- out->append("$TwoDPtInAnnulusExpression", true);
+ void serialize(BSONObjBuilder* out, bool includePath) const final {
+ out->append("TwoDPtInAnnulusExpression", true);
}
bool matchesSingleElement(const BSONElement& e, MatchDetails* details = nullptr) const final {
@@ -272,9 +265,7 @@ public:
// These won't be called.
//
- void appendSerializedRightHandSide(BSONObjBuilder* bob,
- const SerializationOptions& opts = {},
- bool includePath = true) const final {
+ BSONObj getSerializedRightHandSide() const final {
MONGO_UNREACHABLE;
}