diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-06-18 21:24:41 +0200 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-06-18 21:24:41 +0200 |
commit | 64b33ee522375a8dc15be2875dfb7db4502259b0 (patch) | |
tree | 44979e0aaf6bb576f4a737a93e071e28809b6779 /db/geo | |
parent | 4d87ff4aa74d7ae975268ac43eee152dc3f5b7e9 (diff) | |
download | mongodb-64b33ee522375a8dc15be2875dfb7db4502259b0.tar.gz |
Imported Upstream version 1.8.2
Diffstat (limited to 'db/geo')
-rw-r--r-- | db/geo/2d.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/geo/2d.cpp b/db/geo/2d.cpp index 934ee80..d6c97f6 100644 --- a/db/geo/2d.cpp +++ b/db/geo/2d.cpp @@ -1144,6 +1144,10 @@ namespace mongo { virtual long long nscanned() { return _nscanned; } + virtual CoveredIndexMatcher *matcher() const { + return _s->_hopper->_matcher.get(); + } + shared_ptr<GeoSearch> _s; GeoHopper::Holder::iterator _cur; GeoHopper::Holder::iterator _end; @@ -1212,6 +1216,9 @@ namespace mongo { virtual DiskLoc currLoc() { assert(ok()); return _cur._loc; } virtual BSONObj currKey() const { return _cur._key; } + virtual CoveredIndexMatcher *matcher() const { + return _matcher.get(); + } virtual bool moreToDo() = 0; virtual void fillStack() = 0; |