mongo::DataFileMgr Class Reference
#include <pdfile.h>
List of all members.
Public Member Functions |
void | _deleteRecord (NamespaceDetails *d, const char *ns, Record *todelete, const DiskLoc &dl) |
void | deleteRecord (const char *ns, Record *todelete, const DiskLoc &dl, bool cappedOK=false, bool noWarn=false) |
Record * | fast_oplog_insert (NamespaceDetails *d, const char *ns, int len) |
void | init (const string &path) |
DiskLoc | insert (const char *ns, const void *buf, int len, bool god=false, const BSONElement &writeId=BSONElement(), bool mayAddIndex=true) |
void | insertAndLog (const char *ns, const BSONObj &o, bool god=false) |
void | insertNoReturnVal (const char *ns, BSONObj o, bool god=false) |
DiskLoc | insertWithObjMod (const char *ns, BSONObj &o, bool god=false) |
const DiskLoc | updateRecord (const char *ns, NamespaceDetails *d, NamespaceDetailsTransient *nsdt, Record *toupdate, const DiskLoc &dl, const char *buf, int len, OpDebug &debug, bool god=false) |
Static Public Member Functions |
static Extent * | allocFromFreeList (const char *ns, int approxSize, bool capped=false) |
static shared_ptr< Cursor > | findAll (const char *ns, const DiskLoc &startLoc=DiskLoc()) |
static Extent * | getExtent (const DiskLoc &dl) |
static Record * | getRecord (const DiskLoc &dl) |
static DeletedRecord * | makeDeletedRecord (const DiskLoc &dl, int len) |
Private Attributes |
vector< MongoDataFile * > | files |
Friends |
class | BasicCursor |
Detailed Description
Definition at line 106 of file pdfile.h.
Member Function Documentation
static Extent* mongo::DataFileMgr::allocFromFreeList |
( |
const char * |
ns, |
|
|
int |
approxSize, |
|
|
bool |
capped = false | |
|
) |
| | [static] |
void mongo::DataFileMgr::deleteRecord |
( |
const char * |
ns, |
|
|
Record * |
todelete, |
|
|
const DiskLoc & |
dl, |
|
|
bool |
cappedOK = false , |
|
|
bool |
noWarn = false | |
|
) |
| | |
static shared_ptr<Cursor> mongo::DataFileMgr::findAll |
( |
const char * |
ns, |
|
|
const DiskLoc & |
startLoc = DiskLoc() | |
|
) |
| | [static] |
Extent * mongo::DataFileMgr::getExtent |
( |
const DiskLoc & |
dl |
) |
[inline, static] |
Record * mongo::DataFileMgr::getRecord |
( |
const DiskLoc & |
dl |
) |
[inline, static] |
void mongo::DataFileMgr::init |
( |
const string & |
path |
) |
|
DiskLoc mongo::DataFileMgr::insert |
( |
const char * |
ns, |
|
|
const void * |
buf, |
|
|
int |
len, |
|
|
bool |
god = false , |
|
|
const BSONElement & |
writeId = BSONElement() , |
|
|
bool |
mayAddIndex = true | |
|
) |
| | |
void mongo::DataFileMgr::insertAndLog |
( |
const char * |
ns, |
|
|
const BSONObj & |
o, |
|
|
bool |
god = false | |
|
) |
| | |
void mongo::DataFileMgr::insertNoReturnVal |
( |
const char * |
ns, |
|
|
BSONObj |
o, |
|
|
bool |
god = false | |
|
) |
| | |
- Parameters:
-
| obj | in value only for this version. |
DiskLoc mongo::DataFileMgr::insertWithObjMod |
( |
const char * |
ns, |
|
|
BSONObj & |
o, |
|
|
bool |
god = false | |
|
) |
| | |
- Parameters:
-
| obj | both and in and out param -- insert can sometimes modify an object (such as add _id). |
DeletedRecord * mongo::DataFileMgr::makeDeletedRecord |
( |
const DiskLoc & |
dl, |
|
|
int |
len | |
|
) |
| | [inline, static] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: