|
MediaWiki master
|
Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping. More...
Inherits HistoryBlob.

Public Member Functions | |
| __construct () | |
| __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 | |
| bool | $mCompressed = false |
| string | $mDefaultHash = '' |
| string[] string | $mItems = [] |
| Array if uncompressed, string if compressed. | |
| int | $mMaxCount = 100 |
| int | $mMaxSize = 10_000_000 |
| int | $mSize = 0 |
| int | $mVersion = 0 |
Concatenated gzip (CGZ) storage Improves compression ratio by concatenating like objects before gzipping.
WARNING: Objects of this class are serialized and permanently stored in the DB. Do not change the name or visibility of any property!
Definition at line 16 of file ConcatenatedGzipHistoryBlob.php.
| ConcatenatedGzipHistoryBlob::__construct | ( | ) |
Definition at line 32 of file ConcatenatedGzipHistoryBlob.php.
| ConcatenatedGzipHistoryBlob::__sleep | ( | ) |
| ConcatenatedGzipHistoryBlob::__wakeup | ( | ) |
Definition at line 121 of file ConcatenatedGzipHistoryBlob.php.
References uncompress().
| ConcatenatedGzipHistoryBlob::addItem | ( | $text | ) |
| string | $text |
Implements HistoryBlob.
Definition at line 43 of file ConcatenatedGzipHistoryBlob.php.
References uncompress().
Referenced by setText().
| ConcatenatedGzipHistoryBlob::compress | ( | ) |
Compress the bulk data in the object.
Definition at line 96 of file ConcatenatedGzipHistoryBlob.php.
Referenced by __sleep().
| ConcatenatedGzipHistoryBlob::getItem | ( | $hash | ) |
| string | $hash |
Implements HistoryBlob.
Definition at line 57 of file ConcatenatedGzipHistoryBlob.php.
References uncompress().
Referenced by getText().
| ConcatenatedGzipHistoryBlob::getText | ( | ) |
Implements HistoryBlob.
Definition at line 78 of file ConcatenatedGzipHistoryBlob.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 131 of file ConcatenatedGzipHistoryBlob.php.
References $mMaxCount.
| ConcatenatedGzipHistoryBlob::removeItem | ( | $hash | ) |
Remove an item.
| string | $hash |
Definition at line 88 of file ConcatenatedGzipHistoryBlob.php.
| ConcatenatedGzipHistoryBlob::setText | ( | $text | ) |
| string | $text |
Implements HistoryBlob.
Definition at line 70 of file ConcatenatedGzipHistoryBlob.php.
References addItem(), and uncompress().
| ConcatenatedGzipHistoryBlob::uncompress | ( | ) |
Uncompress bulk data.
Definition at line 106 of file ConcatenatedGzipHistoryBlob.php.
Referenced by __wakeup(), addItem(), getItem(), getText(), and setText().
| bool ConcatenatedGzipHistoryBlob::$mCompressed = false |
Definition at line 20 of file ConcatenatedGzipHistoryBlob.php.
| string ConcatenatedGzipHistoryBlob::$mDefaultHash = '' |
Definition at line 24 of file ConcatenatedGzipHistoryBlob.php.
| string [] string ConcatenatedGzipHistoryBlob::$mItems = [] |
Array if uncompressed, string if compressed.
Definition at line 22 of file ConcatenatedGzipHistoryBlob.php.
| int ConcatenatedGzipHistoryBlob::$mMaxCount = 100 |
Definition at line 30 of file ConcatenatedGzipHistoryBlob.php.
Referenced by isHappy().
| int ConcatenatedGzipHistoryBlob::$mMaxSize = 10_000_000 |
Definition at line 28 of file ConcatenatedGzipHistoryBlob.php.
| int ConcatenatedGzipHistoryBlob::$mSize = 0 |
Definition at line 26 of file ConcatenatedGzipHistoryBlob.php.
| int ConcatenatedGzipHistoryBlob::$mVersion = 0 |
Definition at line 18 of file ConcatenatedGzipHistoryBlob.php.