diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/matcher/expression_geo.h | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/matcher/expression_geo.h')
| -rw-r--r-- | src/mongo/db/matcher/expression_geo.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/mongo/db/matcher/expression_geo.h b/src/mongo/db/matcher/expression_geo.h index bd3752399c8..b58904a7eff 100644 --- a/src/mongo/db/matcher/expression_geo.h +++ b/src/mongo/db/matcher/expression_geo.h @@ -73,7 +73,8 @@ 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; @@ -106,7 +107,9 @@ public: virtual void debugString(StringBuilder& debug, int indentationLevel = 0) const; - BSONObj getSerializedRightHandSide() const final; + void appendSerializedRightHandSide(BSONObjBuilder* bob, + const SerializationOptions& opts = {}, + bool includePath = true) const final; virtual bool equivalent(const MatchExpression* other) const; @@ -206,7 +209,9 @@ public: virtual void debugString(StringBuilder& debug, int indentationLevel = 0) const; - BSONObj getSerializedRightHandSide() const final; + void appendSerializedRightHandSide(BSONObjBuilder* bob, + const SerializationOptions& opts = {}, + bool includePath = true) const final; virtual bool equivalent(const MatchExpression* other) const; @@ -246,8 +251,10 @@ public: TwoDPtInAnnulusExpression(const R2Annulus& annulus, StringData twoDPath) : LeafMatchExpression(INTERNAL_2D_POINT_IN_ANNULUS, twoDPath), _annulus(annulus) {} - void serialize(BSONObjBuilder* out, bool includePath) const final { - out->append("TwoDPtInAnnulusExpression", true); + void serialize(BSONObjBuilder* out, + const SerializationOptions& opts = {}, + bool includePath = true) const final { + out->append("$TwoDPtInAnnulusExpression", true); } bool matchesSingleElement(const BSONElement& e, MatchDetails* details = nullptr) const final { @@ -265,7 +272,9 @@ public: // These won't be called. // - BSONObj getSerializedRightHandSide() const final { + void appendSerializedRightHandSide(BSONObjBuilder* bob, + const SerializationOptions& opts = {}, + bool includePath = true) const final { MONGO_UNREACHABLE; } |
