#include <cursor.h>
Public Member Functions | |
Record * | _current () |
bool | advance () |
BasicCursor (const AdvanceStrategy *_s=forward()) | |
BasicCursor (DiskLoc dl, const AdvanceStrategy *_s=forward()) | |
BSONObj | current () |
virtual DiskLoc | currLoc () |
virtual bool | getsetdup (DiskLoc loc) |
virtual bool | isMultiKey () const |
virtual CoveredIndexMatcher * | matcher () const |
virtual bool | modifiedKeys () const |
virtual long long | nscanned () |
bool | ok () |
virtual DiskLoc | refLoc () |
virtual void | setMatcher (shared_ptr< CoveredIndexMatcher > matcher) |
virtual void | setTailable () |
virtual bool | supportGetMore () |
virtual bool | supportYields () |
virtual bool | tailable () |
virtual string | toString () |
Protected Member Functions | |
void | incNscanned () |
Protected Attributes | |
DiskLoc | curr |
DiskLoc | last |
const AdvanceStrategy * | s |
Private Member Functions | |
void | init () |
Private Attributes | |
shared_ptr< CoveredIndexMatcher > | _matcher |
long long | _nscanned |
bool | tailable_ |
Definition at line 137 of file cursor.h.
mongo::BasicCursor::BasicCursor | ( | DiskLoc | dl, | |
const AdvanceStrategy * | _s = forward() | |||
) | [inline] |
mongo::BasicCursor::BasicCursor | ( | const AdvanceStrategy * | _s = forward() |
) | [inline] |
Record* mongo::BasicCursor::_current | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
bool mongo::BasicCursor::advance | ( | ) | [virtual] |
Implements mongo::Cursor.
BSONObj mongo::BasicCursor::current | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
virtual DiskLoc mongo::BasicCursor::currLoc | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
virtual bool mongo::BasicCursor::getsetdup | ( | DiskLoc | loc | ) | [inline, virtual] |
Implements mongo::Cursor.
void mongo::BasicCursor::incNscanned | ( | ) | [inline, protected] |
virtual bool mongo::BasicCursor::isMultiKey | ( | ) | const [inline, virtual] |
Implements mongo::Cursor.
virtual CoveredIndexMatcher* mongo::BasicCursor::matcher | ( | ) | const [inline, virtual] |
Reimplemented from mongo::Cursor.
virtual bool mongo::BasicCursor::modifiedKeys | ( | ) | const [inline, virtual] |
return true if the keys in the index have been modified from the main doc if you have { a : 1 , b : [ 1 , 2 ] } an index on { a : 1 } would not be modified an index on { b : 1 } would be since the values of the array are put in the index not the array
Implements mongo::Cursor.
virtual long long mongo::BasicCursor::nscanned | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
bool mongo::BasicCursor::ok | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
virtual DiskLoc mongo::BasicCursor::refLoc | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
virtual void mongo::BasicCursor::setMatcher | ( | shared_ptr< CoveredIndexMatcher > | matcher | ) | [inline, virtual] |
Reimplemented from mongo::Cursor.
virtual void mongo::BasicCursor::setTailable | ( | ) | [inline, virtual] |
Reimplemented from mongo::Cursor.
virtual bool mongo::BasicCursor::supportGetMore | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
virtual bool mongo::BasicCursor::supportYields | ( | ) | [inline, virtual] |
Implements mongo::Cursor.
virtual bool mongo::BasicCursor::tailable | ( | ) | [inline, virtual] |
Reimplemented from mongo::Cursor.
virtual string mongo::BasicCursor::toString | ( | ) | [inline, virtual] |
Reimplemented from mongo::Cursor.
Reimplemented in mongo::ReverseCursor, mongo::ForwardCappedCursor, and mongo::ReverseCappedCursor.
shared_ptr< CoveredIndexMatcher > mongo::BasicCursor::_matcher [private] |
long long mongo::BasicCursor::_nscanned [private] |
DiskLoc mongo::BasicCursor::curr [protected] |
DiskLoc mongo::BasicCursor::last [protected] |
const AdvanceStrategy* mongo::BasicCursor::s [protected] |
bool mongo::BasicCursor::tailable_ [private] |