mongo::QueryPlan Class Reference

#include <queryoptimizer.h>

List of all members.

Public Member Functions

int direction () const
bool exactKeyMatch () const
shared_ptr< FieldRangeVectorfrv () const
bool indexed () const
BSONObj indexKey () const
bool isMultiKey () const
shared_ptr< CursornewCursor (const DiskLoc &startLoc=DiskLoc(), int numWanted=0) const
shared_ptr< CursornewReverseCursor () const
const char * ns () const
NamespaceDetailsnsd () const
bool optimal () const
shared_ptr< FieldRangeVectororiginalFrv () const
BSONObj originalQuery () const
 QueryPlan (NamespaceDetails *d, int idxNo, const FieldRangeSet &fbs, const FieldRangeSet &originalFrs, const BSONObj &originalQuery, const BSONObj &order, const BSONObj &startKey=BSONObj(), const BSONObj &endKey=BSONObj(), string special="")
const FieldRangerange (const char *fieldName) const
void registerSelf (long long nScanned) const
bool scanAndOrderRequired () const
BSONObj simplifiedQuery (const BSONObj &fields=BSONObj()) const
bool unhelpful () const
bool willScanTable () const

Private Attributes

NamespaceDetails_d
int _direction
BSONObj _endKey
bool _endKeyInclusive
bool _exactKeyMatch
const FieldRangeSet_fbs
shared_ptr< FieldRangeVector_frv
int _idxNo
const IndexDetails_index
bool _optimal
const BSONObj_order
shared_ptr< FieldRangeVector_originalFrv
const BSONObj_originalQuery
bool _scanAndOrderRequired
string _special
BSONObj _startKey
bool _startOrEndSpec
IndexType_type
bool _unhelpful

Detailed Description

Definition at line 32 of file queryoptimizer.h.


Constructor & Destructor Documentation

mongo::QueryPlan::QueryPlan ( NamespaceDetails d,
int  idxNo,
const FieldRangeSet fbs,
const FieldRangeSet originalFrs,
const BSONObj originalQuery,
const BSONObj order,
const BSONObj startKey = BSONObj(),
const BSONObj endKey = BSONObj(),
string  special = "" 
)

Member Function Documentation

int mongo::QueryPlan::direction (  )  const [inline]

Definition at line 56 of file queryoptimizer.h.

bool mongo::QueryPlan::exactKeyMatch (  )  const [inline]

Definition at line 52 of file queryoptimizer.h.

shared_ptr< FieldRangeVector > mongo::QueryPlan::frv (  )  const [inline]

Definition at line 70 of file queryoptimizer.h.

bool mongo::QueryPlan::indexed (  )  const [inline]

Definition at line 60 of file queryoptimizer.h.

BSONObj mongo::QueryPlan::indexKey (  )  const
bool mongo::QueryPlan::isMultiKey (  )  const
shared_ptr<Cursor> mongo::QueryPlan::newCursor ( const DiskLoc startLoc = DiskLoc(),
int  numWanted = 0 
) const
shared_ptr<Cursor> mongo::QueryPlan::newReverseCursor (  )  const
const char* mongo::QueryPlan::ns (  )  const [inline]

Definition at line 62 of file queryoptimizer.h.

NamespaceDetails* mongo::QueryPlan::nsd (  )  const [inline]

Definition at line 63 of file queryoptimizer.h.

bool mongo::QueryPlan::optimal (  )  const [inline]

Definition at line 46 of file queryoptimizer.h.

shared_ptr< FieldRangeVector > mongo::QueryPlan::originalFrv (  )  const [inline]

Definition at line 68 of file queryoptimizer.h.

BSONObj mongo::QueryPlan::originalQuery (  )  const [inline]

Definition at line 64 of file queryoptimizer.h.

const FieldRange& mongo::QueryPlan::range ( const char *  fieldName  )  const [inline]

Definition at line 66 of file queryoptimizer.h.

void mongo::QueryPlan::registerSelf ( long long  nScanned  )  const
bool mongo::QueryPlan::scanAndOrderRequired (  )  const [inline]

Definition at line 48 of file queryoptimizer.h.

BSONObj mongo::QueryPlan::simplifiedQuery ( const BSONObj fields = BSONObj()  )  const [inline]

Definition at line 65 of file queryoptimizer.h.

bool mongo::QueryPlan::unhelpful (  )  const [inline]

Definition at line 55 of file queryoptimizer.h.

bool mongo::QueryPlan::willScanTable (  )  const [inline]

Definition at line 61 of file queryoptimizer.h.


Member Data Documentation

Definition at line 74 of file queryoptimizer.h.

Definition at line 83 of file queryoptimizer.h.

Definition at line 87 of file queryoptimizer.h.

Definition at line 88 of file queryoptimizer.h.

Definition at line 82 of file queryoptimizer.h.

Definition at line 76 of file queryoptimizer.h.

shared_ptr< FieldRangeVector > mongo::QueryPlan::_frv [private]

Definition at line 84 of file queryoptimizer.h.

int mongo::QueryPlan::_idxNo [private]

Definition at line 75 of file queryoptimizer.h.

Definition at line 79 of file queryoptimizer.h.

Definition at line 80 of file queryoptimizer.h.

Definition at line 78 of file queryoptimizer.h.

Definition at line 85 of file queryoptimizer.h.

Definition at line 77 of file queryoptimizer.h.

Definition at line 81 of file queryoptimizer.h.

string mongo::QueryPlan::_special [private]

Definition at line 90 of file queryoptimizer.h.

Definition at line 86 of file queryoptimizer.h.

Definition at line 92 of file queryoptimizer.h.

Definition at line 91 of file queryoptimizer.h.

Definition at line 89 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