#include <namespace.h>
Public Member Functions | |
| void | addedIndex () |
| void | clearQueryCache () |
| void | deletedIndex () |
| const IndexSpec & | getIndexSpec (const IndexDetails *details) |
| BSONObj | indexForPattern (const QueryPattern &pattern) |
| set< string > & | indexKeys () |
| NamespaceDetailsTransient (const char *ns) | |
| void | notifyOfWriteOp () |
| long long | nScannedForPattern (const QueryPattern &pattern) |
| void | registerIndexForPattern (const QueryPattern &pattern, const BSONObj &indexKey, long long nScanned) |
Static Public Member Functions | |
| static NamespaceDetailsTransient & | _get (const char *ns) |
| static void | clearForPrefix (const char *prefix) |
| static NamespaceDetailsTransient & | get_inlock (const char *ns) |
| static NamespaceDetailsTransient & | get_w (const char *ns) |
Static Public Attributes | |
| static mongo::mutex | _qcMutex |
Private Member Functions | |
| BOOST_STATIC_ASSERT (sizeof(NamespaceDetails)==496) | |
| void | computeIndexKeys () |
| void | reset () |
Private Attributes | |
| set< string > | _indexKeys |
| map< const IndexDetails *, IndexSpec > | _indexSpecs |
| bool | _keysComputed |
| string | _ns |
| map< QueryPattern, pair < BSONObj, long long > > | _qcCache |
| int | _qcWriteCount |
Static Private Attributes | |
| static mongo::mutex | _isMutex |
| static std::map< string, shared_ptr < NamespaceDetailsTransient > > | _map |
Definition at line 405 of file namespace.h.
| mongo::NamespaceDetailsTransient::NamespaceDetailsTransient | ( | const char * | ns | ) | [inline] |
Definition at line 414 of file namespace.h.
| NamespaceDetailsTransient & mongo::NamespaceDetailsTransient::_get | ( | const char * | ns | ) | [inline, static] |
Definition at line 496 of file namespace.h.
| void mongo::NamespaceDetailsTransient::addedIndex | ( | ) | [inline] |
Definition at line 422 of file namespace.h.
| mongo::NamespaceDetailsTransient::BOOST_STATIC_ASSERT | ( | sizeof(NamespaceDetails) | = =496 |
) | [private] |
| static void mongo::NamespaceDetailsTransient::clearForPrefix | ( | const char * | prefix | ) | [static] |
| void mongo::NamespaceDetailsTransient::clearQueryCache | ( | ) | [inline] |
Definition at line 473 of file namespace.h.
| void mongo::NamespaceDetailsTransient::computeIndexKeys | ( | ) | [private] |
| void mongo::NamespaceDetailsTransient::deletedIndex | ( | ) | [inline] |
Definition at line 423 of file namespace.h.
| static NamespaceDetailsTransient& mongo::NamespaceDetailsTransient::get_inlock | ( | const char * | ns | ) | [inline, static] |
Definition at line 470 of file namespace.h.
| static NamespaceDetailsTransient& mongo::NamespaceDetailsTransient::get_w | ( | const char * | ns | ) | [inline, static] |
Definition at line 418 of file namespace.h.
| const IndexSpec& mongo::NamespaceDetailsTransient::getIndexSpec | ( | const IndexDetails * | details | ) | [inline] |
Definition at line 451 of file namespace.h.
| BSONObj mongo::NamespaceDetailsTransient::indexForPattern | ( | const QueryPattern & | pattern | ) | [inline] |
Definition at line 484 of file namespace.h.
| set<string>& mongo::NamespaceDetailsTransient::indexKeys | ( | ) | [inline] |
Definition at line 439 of file namespace.h.
| void mongo::NamespaceDetailsTransient::notifyOfWriteOp | ( | ) | [inline] |
Definition at line 478 of file namespace.h.
| long long mongo::NamespaceDetailsTransient::nScannedForPattern | ( | const QueryPattern & | pattern | ) | [inline] |
Definition at line 487 of file namespace.h.
| void mongo::NamespaceDetailsTransient::registerIndexForPattern | ( | const QueryPattern & | pattern, | |
| const BSONObj & | indexKey, | |||
| long long | nScanned | |||
| ) | [inline] |
Definition at line 490 of file namespace.h.
| void mongo::NamespaceDetailsTransient::reset | ( | ) | [private] |
set<string> mongo::NamespaceDetailsTransient::_indexKeys [private] |
Definition at line 433 of file namespace.h.
map<const IndexDetails*,IndexSpec> mongo::NamespaceDetailsTransient::_indexSpecs [private] |
Definition at line 448 of file namespace.h.
mongo::mutex mongo::NamespaceDetailsTransient::_isMutex [static, private] |
Definition at line 449 of file namespace.h.
bool mongo::NamespaceDetailsTransient::_keysComputed [private] |
Definition at line 432 of file namespace.h.
std::map< string, shared_ptr< NamespaceDetailsTransient > > mongo::NamespaceDetailsTransient::_map [static, private] |
Definition at line 412 of file namespace.h.
string mongo::NamespaceDetailsTransient::_ns [private] |
Definition at line 410 of file namespace.h.
map< QueryPattern, pair< BSONObj, long long > > mongo::NamespaceDetailsTransient::_qcCache [private] |
Definition at line 466 of file namespace.h.
Definition at line 468 of file namespace.h.
int mongo::NamespaceDetailsTransient::_qcWriteCount [private] |
Definition at line 465 of file namespace.h.