mongo::QueryPlanSet Class Reference
#include <queryoptimizer.h>
List of all members.
Classes |
struct | Runner |
Public Types |
typedef vector< QueryPlanPtr > | PlanSet |
typedef boost::shared_ptr
< QueryPlan > | QueryPlanPtr |
Public Member Functions |
BSONObj | explain () const |
const FieldRangeSet & | fbs () const |
QueryPlanPtr | getBestGuess () const |
bool | hasMultiKey () const |
bool | modifiedKeys () const |
int | nPlans () const |
const FieldRangeSet & | originalFrs () const |
| QueryPlanSet (const char *ns, auto_ptr< FieldRangeSet > frs, auto_ptr< FieldRangeSet > originalFrs, const BSONObj &originalQuery, const BSONObj &order, const BSONElement *hint=0, bool honorRecordedPlan=true, const BSONObj &min=BSONObj(), const BSONObj &max=BSONObj(), bool bestGuessOnly=false, bool mayYield=false) |
template<class T > |
shared_ptr< T > | runOp (T &op) |
shared_ptr< QueryOp > | runOp (QueryOp &op) |
bool | usingPrerecordedPlan () const |
Private Member Functions |
void | addHint (IndexDetails &id) |
void | addOtherPlans (bool checkFirst) |
void | addPlan (QueryPlanPtr plan, bool checkFirst) |
void | init () |
Private Attributes |
bool | _bestGuessOnly |
auto_ptr< FieldRangeSet > | _fbs |
BSONObj | _hint |
bool | _honorRecordedPlan |
BSONObj | _max |
bool | _mayRecordPlan |
bool | _mayYield |
BSONObj | _min |
const char * | _ns |
long long | _oldNScanned |
BSONObj | _order |
auto_ptr< FieldRangeSet > | _originalFrs |
BSONObj | _originalQuery |
PlanSet | _plans |
string | _special |
bool | _usingPrerecordedPlan |
ElapsedTracker | _yieldSometimesTracker |
Detailed Description
Definition at line 181 of file queryoptimizer.h.
Member Typedef Documentation
Constructor & Destructor Documentation
mongo::QueryPlanSet::QueryPlanSet |
( |
const char * |
ns, |
|
|
auto_ptr< FieldRangeSet > |
frs, |
|
|
auto_ptr< FieldRangeSet > |
originalFrs, |
|
|
const BSONObj & |
originalQuery, |
|
|
const BSONObj & |
order, |
|
|
const BSONElement * |
hint = 0 , |
|
|
bool |
honorRecordedPlan = true , |
|
|
const BSONObj & |
min = BSONObj() , |
|
|
const BSONObj & |
max = BSONObj() , |
|
|
bool |
bestGuessOnly = false , |
|
|
bool |
mayYield = false | |
|
) |
| | |
Member Function Documentation
void mongo::QueryPlanSet::addHint |
( |
IndexDetails & |
id |
) |
[private] |
void mongo::QueryPlanSet::addOtherPlans |
( |
bool |
checkFirst |
) |
[private] |
void mongo::QueryPlanSet::addPlan |
( |
QueryPlanPtr |
plan, |
|
|
bool |
checkFirst | |
|
) |
| | [inline, private] |
BSONObj mongo::QueryPlanSet::explain |
( |
|
) |
const |
bool mongo::QueryPlanSet::hasMultiKey |
( |
|
) |
const |
void mongo::QueryPlanSet::init |
( |
|
) |
[private] |
bool mongo::QueryPlanSet::modifiedKeys |
( |
|
) |
const |
int mongo::QueryPlanSet::nPlans |
( |
|
) |
const [inline] |
const FieldRangeSet& mongo::QueryPlanSet::originalFrs |
( |
|
) |
const [inline] |
template<class T >
shared_ptr< T > mongo::QueryPlanSet::runOp |
( |
T & |
op |
) |
[inline] |
bool mongo::QueryPlanSet::usingPrerecordedPlan |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: