MediaWiki  1.23.13
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 = array()
 
 $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 74 of file HistoryBlob.php.

Constructor & Destructor Documentation

◆ __construct()

ConcatenatedGzipHistoryBlob::__construct ( )

Constructor.

Definition at line 84 of file HistoryBlob.php.

Member Function Documentation

◆ __sleep()

ConcatenatedGzipHistoryBlob::__sleep ( )
Returns
array

Definition at line 167 of file HistoryBlob.php.

References array(), and compress().

◆ __wakeup()

ConcatenatedGzipHistoryBlob::__wakeup ( )

Definition at line 172 of file HistoryBlob.php.

References uncompress().

◆ addItem()

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

Implements HistoryBlob.

Definition at line 94 of file HistoryBlob.php.

References $hash, and uncompress().

Referenced by setText().

◆ compress()

ConcatenatedGzipHistoryBlob::compress ( )

Compress the bulk data in the object.

Definition at line 147 of file HistoryBlob.php.

Referenced by __sleep().

◆ getItem()

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

Implements HistoryBlob.

Definition at line 108 of file HistoryBlob.php.

References $hash, and uncompress().

Referenced by getText().

◆ getText()

ConcatenatedGzipHistoryBlob::getText ( )
Returns
array|bool

Implements HistoryBlob.

Definition at line 129 of file HistoryBlob.php.

References getItem(), and uncompress().

◆ isHappy()

ConcatenatedGzipHistoryBlob::isHappy ( )

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

Returns
bool

Definition at line 182 of file HistoryBlob.php.

References $mMaxCount.

◆ removeItem()

ConcatenatedGzipHistoryBlob::removeItem (   $hash)

Remove an item.

Parameters
$hashstring

Definition at line 139 of file HistoryBlob.php.

References $hash.

◆ setText()

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

Implements HistoryBlob.

Definition at line 121 of file HistoryBlob.php.

References addItem(), and uncompress().

◆ uncompress()

ConcatenatedGzipHistoryBlob::uncompress ( )

Uncompress bulk data.

Definition at line 157 of file HistoryBlob.php.

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

Member Data Documentation

◆ $mCompressed

ConcatenatedGzipHistoryBlob::$mCompressed = false

Definition at line 76 of file HistoryBlob.php.

◆ $mDefaultHash

ConcatenatedGzipHistoryBlob::$mDefaultHash = ''

Definition at line 76 of file HistoryBlob.php.

◆ $mItems

ConcatenatedGzipHistoryBlob::$mItems = array()

Definition at line 76 of file HistoryBlob.php.

◆ $mMaxCount

ConcatenatedGzipHistoryBlob::$mMaxCount = 100

Definition at line 79 of file HistoryBlob.php.

Referenced by isHappy().

◆ $mMaxSize

ConcatenatedGzipHistoryBlob::$mMaxSize = 10000000

Definition at line 78 of file HistoryBlob.php.

◆ $mSize

ConcatenatedGzipHistoryBlob::$mSize = 0

Definition at line 77 of file HistoryBlob.php.

◆ $mVersion

ConcatenatedGzipHistoryBlob::$mVersion = 0

Definition at line 76 of file HistoryBlob.php.


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