mongo::Extent Class Reference

#include <pdfile.h>

List of all members.

Classes

struct  FL

Public Member Functions

void assertOk () const
void dump (iostream &s)
FLfl ()
ExtentgetNextExtent ()
ExtentgetPrevExtent ()
RecordgetRecord (DiskLoc dl)
DiskLoc init (const char *nsname, int _length, int _fileNo, int _offset)
bool isOk () const
RecordnewRecord (int len)
DiskLoc reuse (const char *nsname)
bool validates ()

Static Public Member Functions

static int followupSize (int len, int lastExtentLen)
static int HeaderSize ()
static int initialSize (int len)
static int maxSize ()
static int minSize ()

Public Attributes

char _extentData [4]
DiskLoc firstRecord
DiskLoc lastRecord
int length
unsigned magic
DiskLoc myLoc
Namespace nsDiagnostic
DiskLoc xnext
DiskLoc xprev

Private Member Functions

DiskLoc _reuse (const char *nsname)

Detailed Description

Definition at line 220 of file pdfile.h.


Member Function Documentation

DiskLoc mongo::Extent::_reuse ( const char *  nsname  )  [private]
void mongo::Extent::assertOk (  )  const [inline]

Definition at line 259 of file pdfile.h.

void mongo::Extent::dump ( iostream &  s  )  [inline]

Definition at line 243 of file pdfile.h.

FL* mongo::Extent::fl (  )  [inline]

often we want to update just the firstRecord and lastRecord fields. this helper is for that -- for use with getDur().writing() method

Definition at line 294 of file pdfile.h.

static int mongo::Extent::followupSize ( int  len,
int  lastExtentLen 
) [static]
Parameters:
len lengt of record we need
lastRecord size of last extent which is a factor in next extent size
Extent* mongo::Extent::getNextExtent (  )  [inline]

Definition at line 271 of file pdfile.h.

Extent* mongo::Extent::getPrevExtent (  )  [inline]

Definition at line 272 of file pdfile.h.

Record* mongo::Extent::getRecord ( DiskLoc  dl  )  [inline]

Definition at line 263 of file pdfile.h.

static int mongo::Extent::HeaderSize (  )  [inline, static]

Definition at line 236 of file pdfile.h.

DiskLoc mongo::Extent::init ( const char *  nsname,
int  _length,
int  _fileNo,
int  _offset 
)
static int mongo::Extent::initialSize ( int  len  )  [static]
Parameters:
len lengt of record we need
bool mongo::Extent::isOk (  )  const [inline]

Definition at line 258 of file pdfile.h.

static int mongo::Extent::maxSize (  )  [static]
static int mongo::Extent::minSize (  )  [inline, static]

Definition at line 275 of file pdfile.h.

Record* mongo::Extent::newRecord ( int  len  ) 
DiskLoc mongo::Extent::reuse ( const char *  nsname  ) 
bool mongo::Extent::validates (  )  [inline]

Definition at line 238 of file pdfile.h.


Member Data Documentation

Definition at line 234 of file pdfile.h.

Definition at line 232 of file pdfile.h.

Definition at line 233 of file pdfile.h.

Definition at line 231 of file pdfile.h.

Definition at line 222 of file pdfile.h.

Definition at line 223 of file pdfile.h.

Definition at line 229 of file pdfile.h.

Definition at line 224 of file pdfile.h.

Definition at line 224 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:55 2013