diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-03-29 12:55:44 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-03-29 12:55:44 -0400 |
commit | 5b5d73a6529b95e47033e40dcebee01d9417ff7f (patch) | |
tree | 6e555a56652091791bca97590aaf6c1f07dada1a /db/matcher.h | |
parent | 45f8d675d3dde087c0e171089aea319e223216d2 (diff) | |
download | mongo-5b5d73a6529b95e47033e40dcebee01d9417ff7f.tar.gz |
faster distinct SERVER-796
Diffstat (limited to 'db/matcher.h')
-rw-r--r-- | db/matcher.h | 4 |
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; } |