diff options
Diffstat (limited to 'src/mongo/db/exec/s2near.cpp')
-rw-r--r-- | src/mongo/db/exec/s2near.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/exec/s2near.cpp b/src/mongo/db/exec/s2near.cpp index ed1113823a5..faaeddaca22 100644 --- a/src/mongo/db/exec/s2near.cpp +++ b/src/mongo/db/exec/s2near.cpp @@ -40,7 +40,11 @@ namespace mongo { - S2NearStage::S2NearStage(const S2NearParams& params, WorkingSet* ws) { + // static + const char* S2NearStage::kStageType = "GEO_NEAR_2DSPHERE"; + + S2NearStage::S2NearStage(const S2NearParams& params, WorkingSet* ws) + : _commonStats(kStageType) { _initted = false; _params = params; _ws = ws; @@ -209,6 +213,9 @@ namespace mongo { virtual void debugString( StringBuilder& debug, int level = 0 ) const { } + virtual void toBSON(BSONObjBuilder* out) const { + } + virtual bool equivalent( const MatchExpression* other ) const { return false; } |