mongo::ParsedQuery Class Reference

#include <query.h>

List of all members.

Public Member Functions

bool couldBeCommand () const
bool enough (int n) const
bool enoughForFirstBatch (int n, int len) const
shared_ptr< ProjectiongetFieldPtr () const
ProjectiongetFields () const
const BSONObjgetFilter () const
const BSONElementgetHint () const
const BSONObjgetMax () const
int getMaxScan () const
const BSONObjgetMin () const
int getNumToReturn () const
int getOptions () const
const BSONObjgetOrder () const
int getSkip () const
bool hasIndexSpecifier () const
bool hasOption (int x) const
bool isExplain () const
bool isLocalDB () const
bool isSnapshot () const
const char * ns () const
 ParsedQuery (const char *ns, int ntoskip, int ntoreturn, int queryoptions, const BSONObj &query, const BSONObj &fields)
 ParsedQuery (QueryMessage &qm)
bool returnKey () const
bool showDiskLoc () const
bool wantMore () const
 ~ParsedQuery ()

Private Member Functions

void _initTop (const BSONObj &top)
void _reset ()
void init (const BSONObj &q)
void initFields (const BSONObj &fields)
 ParsedQuery (const ParsedQuery &other)

Private Attributes

bool _explain
shared_ptr< Projection_fields
BSONObj _filter
BSONElement _hint
BSONObj _max
int _maxScan
BSONObj _min
const char * _ns
int _ntoreturn
int _ntoskip
int _options
BSONObj _order
bool _returnKey
bool _showDiskLoc
bool _snapshot
bool _wantMore

Detailed Description

this represents a total user query includes fields from the query message, both possible query levels parses everything up front

Definition at line 145 of file query.h.


Constructor & Destructor Documentation

mongo::ParsedQuery::ParsedQuery ( QueryMessage qm  )  [inline]

Definition at line 147 of file query.h.

mongo::ParsedQuery::ParsedQuery ( const char *  ns,
int  ntoskip,
int  ntoreturn,
int  queryoptions,
const BSONObj query,
const BSONObj fields 
) [inline]

Definition at line 152 of file query.h.

mongo::ParsedQuery::~ParsedQuery (  )  [inline]

Definition at line 158 of file query.h.

mongo::ParsedQuery::ParsedQuery ( const ParsedQuery other  )  [inline, private]

Definition at line 302 of file query.h.


Member Function Documentation

void mongo::ParsedQuery::_initTop ( const BSONObj top  )  [inline, private]

Definition at line 250 of file query.h.

void mongo::ParsedQuery::_reset (  )  [inline, private]

Definition at line 241 of file query.h.

bool mongo::ParsedQuery::couldBeCommand (  )  const [inline]

Definition at line 185 of file query.h.

bool mongo::ParsedQuery::enough ( int  n  )  const [inline]

Definition at line 207 of file query.h.

bool mongo::ParsedQuery::enoughForFirstBatch ( int  n,
int  len 
) const [inline]

Definition at line 201 of file query.h.

shared_ptr<Projection> mongo::ParsedQuery::getFieldPtr (  )  const [inline]

Definition at line 165 of file query.h.

Projection* mongo::ParsedQuery::getFields (  )  const [inline]

Definition at line 164 of file query.h.

const BSONObj& mongo::ParsedQuery::getFilter (  )  const [inline]

Definition at line 163 of file query.h.

const BSONElement& mongo::ParsedQuery::getHint (  )  const [inline]

Definition at line 182 of file query.h.

const BSONObj& mongo::ParsedQuery::getMax (  )  const [inline]

Definition at line 180 of file query.h.

int mongo::ParsedQuery::getMaxScan (  )  const [inline]

Definition at line 183 of file query.h.

const BSONObj& mongo::ParsedQuery::getMin (  )  const [inline]

Definition at line 179 of file query.h.

int mongo::ParsedQuery::getNumToReturn (  )  const [inline]

Definition at line 168 of file query.h.

int mongo::ParsedQuery::getOptions (  )  const [inline]

Definition at line 170 of file query.h.

const BSONObj& mongo::ParsedQuery::getOrder (  )  const [inline]

Definition at line 181 of file query.h.

int mongo::ParsedQuery::getSkip (  )  const [inline]

Definition at line 167 of file query.h.

bool mongo::ParsedQuery::hasIndexSpecifier (  )  const [inline]

Definition at line 190 of file query.h.

bool mongo::ParsedQuery::hasOption ( int  x  )  const [inline]

Definition at line 171 of file query.h.

void mongo::ParsedQuery::init ( const BSONObj q  )  [inline, private]

Definition at line 214 of file query.h.

void mongo::ParsedQuery::initFields ( const BSONObj fields  )  [inline, private]

Definition at line 295 of file query.h.

bool mongo::ParsedQuery::isExplain (  )  const [inline]

Definition at line 174 of file query.h.

bool mongo::ParsedQuery::isLocalDB (  )  const [inline]

Definition at line 161 of file query.h.

bool mongo::ParsedQuery::isSnapshot (  )  const [inline]

Definition at line 175 of file query.h.

const char* mongo::ParsedQuery::ns (  )  const [inline]

Definition at line 160 of file query.h.

bool mongo::ParsedQuery::returnKey (  )  const [inline]

Definition at line 176 of file query.h.

bool mongo::ParsedQuery::showDiskLoc (  )  const [inline]

Definition at line 177 of file query.h.

bool mongo::ParsedQuery::wantMore (  )  const [inline]

Definition at line 169 of file query.h.


Member Data Documentation

Definition at line 316 of file query.h.

shared_ptr< Projection > mongo::ParsedQuery::_fields [private]

Definition at line 312 of file query.h.

Definition at line 311 of file query.h.

Definition at line 322 of file query.h.

Definition at line 321 of file query.h.

Definition at line 324 of file query.h.

Definition at line 320 of file query.h.

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

Definition at line 306 of file query.h.

Definition at line 308 of file query.h.

Definition at line 307 of file query.h.

Definition at line 309 of file query.h.

Definition at line 323 of file query.h.

Definition at line 318 of file query.h.

Definition at line 319 of file query.h.

Definition at line 317 of file query.h.

Definition at line 314 of file query.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