Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

FileBucket::Record Class Reference

List of all members.

Public Member Functions

void[] read (FileBucket bucket)
void write (FileBucket bucket, void[] data, BlockSize block)
void createBucket (FileBucket bucket, int bytes, BlockSize block)

Static Private Member Functions

void eof (FileBucket bucket)

Private Attributes

long offset
int length
int capacity = -1

Detailed Description

Each Record takes up a number of 'pages' within the file. The size of these pages is determined by the BlockSize provided during FileBucket construction. Additional space at the end of each block is potentially wasted, but enables content to grow in size without creating a myriad of holes.

Definition at line 295 of file FileBucket.d.


Member Function Documentation

void eof FileBucket  bucket  )  [inline, static, private]
 

Definition at line 305 of file FileBucket.d.

References FileBucket::path, and FilePath::toString().

Referenced by read(), and write().

void [] read FileBucket  bucket  )  [inline]
 

This should be protected from thread-contention at a higher level.

Definition at line 317 of file FileBucket.d.

References FileBucket::buffer, eof(), FileBucket::file, offset, Conduit::read(), FileConduit::seek(), and Buffer::setContent().

Referenced by FileBucket::get().

void write FileBucket  bucket,
void[]  data,
BlockSize  block
[inline]
 

This should be protected from thread-contention at a higher level.

Definition at line 336 of file FileBucket.d.

References FileBucket::buffer, createBucket(), eof(), FileBucket::file, Conduit::flush(), offset, FileConduit::seek(), and Buffer::setValidContent().

Referenced by FileBucket::put().

void createBucket FileBucket  bucket,
int  bytes,
BlockSize  block
[inline]
 

Definition at line 357 of file FileBucket.d.

References FileBucket::BlockSize::capacity, FileBucket::file, FileBucket::fileSize, offset, FileConduit::seek(), and FileBucket::waterLine.

Referenced by write().


Member Data Documentation

long offset [private]
 

Definition at line 297 of file FileBucket.d.

Referenced by createBucket(), read(), and write().

int length [private]
 

Definition at line 298 of file FileBucket.d.

int capacity = -1 [private]
 

Definition at line 299 of file FileBucket.d.


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:02 2004 for Mango by doxygen 1.3.6