diff options
Diffstat (limited to 'src/mongo/db/exec/2dcommon.h')
-rw-r--r-- | src/mongo/db/exec/2dcommon.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/exec/2dcommon.h b/src/mongo/db/exec/2dcommon.h index 6986e3d4a7b..67307038482 100644 --- a/src/mongo/db/exec/2dcommon.h +++ b/src/mongo/db/exec/2dcommon.h @@ -141,7 +141,8 @@ namespace twod_exec { class GeoAccumulator { public: - GeoAccumulator(TwoDAccessMethod* accessMethod, MatchExpression* filter); + GeoAccumulator(Collection* collection, + TwoDAccessMethod* accessMethod, MatchExpression* filter); virtual ~GeoAccumulator(); @@ -159,6 +160,7 @@ namespace twod_exec { virtual KeyResult approxKeyCheck(const Point& p, double& keyD) = 0; + Collection* _collection; TwoDAccessMethod* _accessMethod; shared_ptr<GeoHashConverter> _converter; std::map<DiskLoc, bool> _matched; @@ -185,7 +187,10 @@ namespace twod_exec { DONE } _state; - GeoBrowse(TwoDAccessMethod* accessMethod, std::string type, MatchExpression* filter); + GeoBrowse(Collection* collection, + TwoDAccessMethod* accessMethod, + std::string type, + MatchExpression* filter); virtual bool ok(); virtual bool advance(); |