mongo::ClusteredCursor Class Reference
#include <parallel.h>
List of all members.
Public Member Functions |
| ClusteredCursor (const string &ns, const BSONObj &q, int options=0, const BSONObj &fields=BSONObj()) |
| ClusteredCursor (QueryMessage &q) |
virtual BSONObj | explain () |
void | init () |
virtual bool | more ()=0 |
virtual BSONObj | next ()=0 |
virtual string | type () const =0 |
virtual | ~ClusteredCursor () |
Static Public Member Functions |
static BSONObj | concatQuery (const BSONObj &query, const BSONObj &extraFilter) |
Protected Member Functions |
virtual void | _explain (map< string, list< BSONObj > > &out)=0 |
virtual void | _init ()=0 |
BSONObj | explain (const string &server, BSONObj extraFilter=BSONObj()) |
auto_ptr< DBClientCursor > | query (const string &server, int num=0, BSONObj extraFilter=BSONObj(), int skipLeft=0) |
Static Protected Member Functions |
static BSONObj | _concatFilter (const BSONObj &filter, const BSONObj &extraFilter) |
Protected Attributes |
int | _batchSize |
bool | _didInit |
bool | _done |
BSONObj | _fields |
string | _ns |
int | _options |
BSONObj | _query |
Detailed Description
this is a cursor that works over a set of servers can be used in serial/paralellel as controlled by sub classes
Definition at line 69 of file parallel.h.
Constructor & Destructor Documentation
mongo::ClusteredCursor::ClusteredCursor |
( |
QueryMessage & |
q |
) |
|
mongo::ClusteredCursor::ClusteredCursor |
( |
const string & |
ns, |
|
|
const BSONObj & |
q, |
|
|
int |
options = 0 , |
|
|
const BSONObj & |
fields = BSONObj() | |
|
) |
| | |
virtual mongo::ClusteredCursor::~ClusteredCursor |
( |
|
) |
[virtual] |
Member Function Documentation
static BSONObj mongo::ClusteredCursor::_concatFilter |
( |
const BSONObj & |
filter, |
|
|
const BSONObj & |
extraFilter | |
|
) |
| | [static, protected] |
virtual void mongo::ClusteredCursor::_explain |
( |
map< string, list< BSONObj > > & |
out |
) |
[protected, pure virtual] |
virtual void mongo::ClusteredCursor::_init |
( |
|
) |
[protected, pure virtual] |
static BSONObj mongo::ClusteredCursor::concatQuery |
( |
const BSONObj & |
query, |
|
|
const BSONObj & |
extraFilter | |
|
) |
| | [static] |
BSONObj mongo::ClusteredCursor::explain |
( |
const string & |
server, |
|
|
BSONObj |
extraFilter = BSONObj() | |
|
) |
| | [protected] |
virtual BSONObj mongo::ClusteredCursor::explain |
( |
|
) |
[virtual] |
void mongo::ClusteredCursor::init |
( |
|
) |
|
virtual bool mongo::ClusteredCursor::more |
( |
|
) |
[pure virtual] |
virtual BSONObj mongo::ClusteredCursor::next |
( |
|
) |
[pure virtual] |
auto_ptr<DBClientCursor> mongo::ClusteredCursor::query |
( |
const string & |
server, |
|
|
int |
num = 0 , |
|
|
BSONObj |
extraFilter = BSONObj() , |
|
|
int |
skipLeft = 0 | |
|
) |
| | [protected] |
virtual string mongo::ClusteredCursor::type |
( |
|
) |
const [pure virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: