ConcatenatedGzipHistoryBlob Class Reference

Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping. More...

Inherits HistoryBlob.

List of all members.

Public Member Functions

 ConcatenatedGzipHistoryBlob ()
 Constructor.
 addItem ($text)
 Adds an item of text, returns a stub object which points to the item.
 getItem ($hash)
 Get item by key, or false if the key is not present.
 setText ($text)
 Set the "default text" This concept is an odd property of the current DB schema, whereby each text item has a revision associated with it.
 getText ()
 Get default text.
 removeItem ($hash)
 Remove an item.
 compress ()
 Compress the bulk data in the object.
 uncompress ()
 Uncompress bulk data.
 __sleep ()
 __wakeup ()
 isHappy ()
 Helper function for compression jobs Returns true until the object is "full" and ready to be committed.

Public Attributes

 $mVersion = 0
 $mCompressed = false
 $mItems = array()
 $mDefaultHash = ''
 $mSize = 0
 $mMaxSize = 10000000
 $mMaxCount = 100


Detailed Description

Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping.

Definition at line 43 of file HistoryBlob.php.


Member Function Documentation

ConcatenatedGzipHistoryBlob::__sleep (  ) 

Definition at line 115 of file HistoryBlob.php.

References compress().

ConcatenatedGzipHistoryBlob::__wakeup (  ) 

Definition at line 120 of file HistoryBlob.php.

References uncompress().

ConcatenatedGzipHistoryBlob::addItem ( text  ) 

Adds an item of text, returns a stub object which points to the item.

You must call setLocation() on the stub object before storing it to the database Returns the key for getItem()

Implements HistoryBlob.

Definition at line 57 of file HistoryBlob.php.

References $text, and uncompress().

Referenced by setText().

ConcatenatedGzipHistoryBlob::compress (  ) 

Compress the bulk data in the object.

Definition at line 97 of file HistoryBlob.php.

Referenced by __sleep().

ConcatenatedGzipHistoryBlob::ConcatenatedGzipHistoryBlob (  ) 

Constructor.

Definition at line 51 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::getItem ( key  ) 

Get item by key, or false if the key is not present.

Implements HistoryBlob.

Definition at line 67 of file HistoryBlob.php.

References uncompress().

Referenced by getText().

ConcatenatedGzipHistoryBlob::getText (  ) 

Get default text.

This is called from Revision::getRevisionText()

Implements HistoryBlob.

Definition at line 81 of file HistoryBlob.php.

References getItem(), and uncompress().

ConcatenatedGzipHistoryBlob::isHappy (  ) 

Helper function for compression jobs Returns true until the object is "full" and ready to be committed.

Definition at line 128 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::removeItem ( hash  ) 

Remove an item.

Definition at line 89 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::setText ( text  ) 

Set the "default text" This concept is an odd property of the current DB schema, whereby each text item has a revision associated with it.

The default text is the text of the associated revision. There may, however, be other revisions in the same object.

Default text is not required for two-part external storage URLs.

Implements HistoryBlob.

Definition at line 76 of file HistoryBlob.php.

References $text, addItem(), and uncompress().

ConcatenatedGzipHistoryBlob::uncompress (  ) 

Uncompress bulk data.

Definition at line 107 of file HistoryBlob.php.

Referenced by __wakeup(), addItem(), getItem(), getText(), and setText().


Member Data Documentation

ConcatenatedGzipHistoryBlob::$mCompressed = false

Definition at line 45 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mDefaultHash = ''

Definition at line 45 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mItems = array()

Definition at line 45 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mMaxCount = 100

Definition at line 48 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mMaxSize = 10000000

Definition at line 47 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mSize = 0

Definition at line 46 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mVersion = 0

Definition at line 45 of file HistoryBlob.php.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:34 2009 for MediaWiki by  doxygen 1.5.9