summaryrefslogtreecommitdiff
path: root/db/geo
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2011-06-18 21:24:41 +0200
committerAntonin Kral <a.kral@bobek.cz>2011-06-18 21:24:41 +0200
commit64b33ee522375a8dc15be2875dfb7db4502259b0 (patch)
tree44979e0aaf6bb576f4a737a93e071e28809b6779 /db/geo
parent4d87ff4aa74d7ae975268ac43eee152dc3f5b7e9 (diff)
downloadmongodb-64b33ee522375a8dc15be2875dfb7db4502259b0.tar.gz
Imported Upstream version 1.8.2
Diffstat (limited to 'db/geo')
-rw-r--r--db/geo/2d.cpp7
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;