mongo::QueryPlanSet Class Reference

#include <queryoptimizer.h>

List of all members.

Classes

struct  Runner

Public Types

typedef vector< QueryPlanPtrPlanSet
typedef boost::shared_ptr
< QueryPlan
QueryPlanPtr

Public Member Functions

BSONObj explain () const
const FieldRangeSetfbs () const
QueryPlanPtr getBestGuess () const
bool hasMultiKey () const
bool modifiedKeys () const
int nPlans () const
const FieldRangeSetoriginalFrs () 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< QueryOprunOp (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

Definition at line 185 of file queryoptimizer.h.

typedef boost::shared_ptr< QueryPlan > mongo::QueryPlanSet::QueryPlanPtr

Definition at line 184 of file queryoptimizer.h.


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]

Definition at line 215 of file queryoptimizer.h.

BSONObj mongo::QueryPlanSet::explain (  )  const
const FieldRangeSet& mongo::QueryPlanSet::fbs (  )  const [inline]

Definition at line 208 of file queryoptimizer.h.

QueryPlanPtr mongo::QueryPlanSet::getBestGuess (  )  const
bool mongo::QueryPlanSet::hasMultiKey (  )  const
void mongo::QueryPlanSet::init (  )  [private]
bool mongo::QueryPlanSet::modifiedKeys (  )  const
int mongo::QueryPlanSet::nPlans (  )  const [inline]

Definition at line 198 of file queryoptimizer.h.

const FieldRangeSet& mongo::QueryPlanSet::originalFrs (  )  const [inline]

Definition at line 209 of file queryoptimizer.h.

template<class T >
shared_ptr< T > mongo::QueryPlanSet::runOp ( T &  op  )  [inline]

Definition at line 201 of file queryoptimizer.h.

shared_ptr< QueryOp > mongo::QueryPlanSet::runOp ( QueryOp op  ) 
bool mongo::QueryPlanSet::usingPrerecordedPlan (  )  const [inline]

Definition at line 205 of file queryoptimizer.h.


Member Data Documentation

Definition at line 248 of file queryoptimizer.h.

Definition at line 236 of file queryoptimizer.h.

Definition at line 241 of file queryoptimizer.h.

Definition at line 244 of file queryoptimizer.h.

Definition at line 246 of file queryoptimizer.h.

Definition at line 239 of file queryoptimizer.h.

Definition at line 249 of file queryoptimizer.h.

Definition at line 245 of file queryoptimizer.h.

const char* mongo::QueryPlanSet::_ns [private]

Definition at line 234 of file queryoptimizer.h.

long long mongo::QueryPlanSet::_oldNScanned [private]

Definition at line 243 of file queryoptimizer.h.

Definition at line 242 of file queryoptimizer.h.

Definition at line 237 of file queryoptimizer.h.

Definition at line 235 of file queryoptimizer.h.

Definition at line 238 of file queryoptimizer.h.

Definition at line 247 of file queryoptimizer.h.

Definition at line 240 of file queryoptimizer.h.

Definition at line 250 of file queryoptimizer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:57 2013