MediaWiki
REL1_23
|
Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping. More...
Public Member Functions | |
__construct () | |
Constructor. | |
__sleep () | |
__wakeup () | |
addItem ($text) | |
compress () | |
Compress the bulk data in the object. | |
getItem ($hash) | |
getText () | |
isHappy () | |
Helper function for compression jobs Returns true until the object is "full" and ready to be committed. | |
removeItem ($hash) | |
Remove an item. | |
setText ($text) | |
uncompress () | |
Uncompress bulk data. | |
Public Attributes | |
$mCompressed = false | |
$mDefaultHash = '' | |
$mItems = array() | |
$mMaxCount = 100 | |
$mMaxSize = 10000000 | |
$mSize = 0 | |
$mVersion = 0 |
Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping.
Definition at line 74 of file HistoryBlob.php.
Constructor.
Definition at line 84 of file HistoryBlob.php.
Definition at line 172 of file HistoryBlob.php.
References uncompress().
ConcatenatedGzipHistoryBlob::addItem | ( | $ | text | ) |
$text | string |
Implements HistoryBlob.
Definition at line 94 of file HistoryBlob.php.
References $hash, and uncompress().
Referenced by setText().
Compress the bulk data in the object.
Definition at line 147 of file HistoryBlob.php.
Referenced by __sleep().
ConcatenatedGzipHistoryBlob::getItem | ( | $ | hash | ) |
$hash | string |
Implements HistoryBlob.
Definition at line 108 of file HistoryBlob.php.
References $hash, and uncompress().
Referenced by getText().
Implements HistoryBlob.
Definition at line 129 of file HistoryBlob.php.
References getItem(), and uncompress().
Helper function for compression jobs Returns true until the object is "full" and ready to be committed.
Definition at line 182 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::removeItem | ( | $ | hash | ) |
Remove an item.
$hash | string |
Definition at line 139 of file HistoryBlob.php.
References $hash.
ConcatenatedGzipHistoryBlob::setText | ( | $ | text | ) |
$text | string |
Implements HistoryBlob.
Definition at line 121 of file HistoryBlob.php.
References addItem(), and uncompress().
Uncompress bulk data.
Definition at line 157 of file HistoryBlob.php.
Referenced by __wakeup(), addItem(), getItem(), getText(), and setText().
ConcatenatedGzipHistoryBlob::$mCompressed = false |
Definition at line 76 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mDefaultHash = '' |
Definition at line 76 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mItems = array() |
Definition at line 76 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mMaxCount = 100 |
Definition at line 79 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mMaxSize = 10000000 |
Definition at line 78 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mSize = 0 |
Definition at line 77 of file HistoryBlob.php.
ConcatenatedGzipHistoryBlob::$mVersion = 0 |
Definition at line 76 of file HistoryBlob.php.