MediaWiki  1.28.0
ConcatenatedGzipHistoryBlob Class Reference

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

Inheritance diagram for ConcatenatedGzipHistoryBlob:
Collaboration diagram for ConcatenatedGzipHistoryBlob:

Public Member Functions

 __construct ()
 Constructor. More...
 
 __sleep ()
 
 __wakeup ()
 
 addItem ($text)
 
 compress ()
 Compress the bulk data in the object. More...
 
 getItem ($hash)
 
 getText ()
 
 isHappy ()
 Helper function for compression jobs Returns true until the object is "full" and ready to be committed. More...
 
 removeItem ($hash)
 Remove an item. More...
 
 setText ($text)
 
 uncompress ()
 Uncompress bulk data. More...
 

Public Attributes

 $mCompressed = false
 
 $mDefaultHash = ''
 
 $mItems = []
 
 $mMaxCount = 100
 
 $mMaxSize = 10000000
 
 $mSize = 0
 
 $mVersion = 0
 

Detailed Description

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

Definition at line 73 of file HistoryBlob.php.

Constructor & Destructor Documentation

ConcatenatedGzipHistoryBlob::__construct ( )

Constructor.

Definition at line 82 of file HistoryBlob.php.

Member Function Documentation

ConcatenatedGzipHistoryBlob::__sleep ( )
Returns
array

Definition at line 166 of file HistoryBlob.php.

References compress().

ConcatenatedGzipHistoryBlob::__wakeup ( )

Definition at line 171 of file HistoryBlob.php.

References uncompress().

ConcatenatedGzipHistoryBlob::addItem (   $text)
Parameters
string$text
Returns
string

Implements HistoryBlob.

Definition at line 93 of file HistoryBlob.php.

References uncompress().

Referenced by setText().

ConcatenatedGzipHistoryBlob::compress ( )

Compress the bulk data in the object.

Definition at line 146 of file HistoryBlob.php.

References serialize().

Referenced by __sleep().

ConcatenatedGzipHistoryBlob::getItem (   $hash)
Parameters
string$hash
Returns
array|bool

Implements HistoryBlob.

Definition at line 107 of file HistoryBlob.php.

References uncompress().

Referenced by getText().

ConcatenatedGzipHistoryBlob::getText ( )
Returns
array|bool

Implements HistoryBlob.

Definition at line 128 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.

Returns
bool

Definition at line 181 of file HistoryBlob.php.

References $mMaxCount.

ConcatenatedGzipHistoryBlob::removeItem (   $hash)

Remove an item.

Parameters
string$hash

Definition at line 138 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::setText (   $text)
Parameters
string$text
Returns
void

Implements HistoryBlob.

Definition at line 120 of file HistoryBlob.php.

References addItem(), and uncompress().

ConcatenatedGzipHistoryBlob::uncompress ( )

Uncompress bulk data.

Definition at line 156 of file HistoryBlob.php.

References unserialize().

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

Member Data Documentation

ConcatenatedGzipHistoryBlob::$mCompressed = false

Definition at line 74 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mDefaultHash = ''

Definition at line 74 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mItems = []

Definition at line 74 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mMaxCount = 100

Definition at line 77 of file HistoryBlob.php.

Referenced by isHappy().

ConcatenatedGzipHistoryBlob::$mMaxSize = 10000000

Definition at line 76 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mSize = 0

Definition at line 75 of file HistoryBlob.php.

ConcatenatedGzipHistoryBlob::$mVersion = 0

Definition at line 74 of file HistoryBlob.php.


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