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)
Recordfast_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 ExtentallocFromFreeList (const char *ns, int approxSize, bool capped=false)
static shared_ptr< CursorfindAll (const char *ns, const DiskLoc &startLoc=DiskLoc())
static ExtentgetExtent (const DiskLoc &dl)
static RecordgetRecord (const DiskLoc &dl)
static DeletedRecordmakeDeletedRecord (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

void mongo::DataFileMgr::_deleteRecord ( NamespaceDetails d,
const char *  ns,
Record todelete,
const DiskLoc dl 
)
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 
)
Record* mongo::DataFileMgr::fast_oplog_insert ( NamespaceDetails d,
const char *  ns,
int  len 
)
static shared_ptr<Cursor> mongo::DataFileMgr::findAll ( const char *  ns,
const DiskLoc startLoc = DiskLoc() 
) [static]
Extent * mongo::DataFileMgr::getExtent ( const DiskLoc dl  )  [inline, static]

Definition at line 460 of file pdfile.h.

Record * mongo::DataFileMgr::getRecord ( const DiskLoc dl  )  [inline, static]

Definition at line 465 of file pdfile.h.

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]

Definition at line 472 of file pdfile.h.

const DiskLoc mongo::DataFileMgr::updateRecord ( const char *  ns,
NamespaceDetails d,
NamespaceDetailsTransient nsdt,
Record toupdate,
const DiskLoc dl,
const char *  buf,
int  len,
OpDebug debug,
bool  god = false 
)
Returns:
DiskLoc where item ends up

Friends And Related Function Documentation

friend class BasicCursor [friend]

Definition at line 107 of file pdfile.h.


Member Data Documentation

Definition at line 151 of file pdfile.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:54 2013