summaryrefslogtreecommitdiff
path: root/db/matcher.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-03-29 12:55:44 -0400
committerEliot Horowitz <eliot@10gen.com>2010-03-29 12:55:44 -0400
commit5b5d73a6529b95e47033e40dcebee01d9417ff7f (patch)
tree6e555a56652091791bca97590aaf6c1f07dada1a /db/matcher.h
parent45f8d675d3dde087c0e171089aea319e223216d2 (diff)
downloadmongo-5b5d73a6529b95e47033e40dcebee01d9417ff7f.tar.gz
faster distinct SERVER-796
Diffstat (limited to 'db/matcher.h')
-rw-r--r--db/matcher.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/matcher.h b/db/matcher.h
index 3839b68aab5..6e2cad7233e 100644
--- a/db/matcher.h
+++ b/db/matcher.h
@@ -24,7 +24,8 @@
#include <pcrecpp.h>
namespace mongo {
-
+
+ class Cursor;
class CoveredIndexMatcher;
class Matcher;
@@ -190,6 +191,7 @@ namespace mongo {
CoveredIndexMatcher(const BSONObj &pattern, const BSONObj &indexKeyPattern);
bool matches(const BSONObj &o){ return _docMatcher.matches( o ); }
bool matches(const BSONObj &key, const DiskLoc &recLoc , MatchDetails * details = 0 );
+ bool matchesCurrent( Cursor * cursor , MatchDetails * details = 0 );
bool needRecord(){ return _needRecord; }
Matcher& docMatcher() { return _docMatcher; }