MediaWiki
REL1_24
|
CDB writer class. More...
Public Member Functions | |
__construct ($fileName) | |
close () | |
set ($key, $value) | |
Protected Member Functions | |
addbegin ($keylen, $datalen) | |
addend ($keylen, $datalen, $h) | |
finish () | |
posplus ($len) | |
throwException ($msg) | |
Clean up the temp file and throw an exception. | |
write ($buf) | |
Protected Attributes | |
$hplist | |
$numentries | |
$pos |
CDB writer class.
Definition at line 290 of file CdbPHP.php.
CdbWriterPHP::__construct | ( | $ | fileName | ) |
string | $fileName |
Reimplemented from CdbWriter.
Definition at line 300 of file CdbPHP.php.
References array(), and throwException().
CdbWriterPHP::addbegin | ( | $ | keylen, |
$ | datalen | ||
) | [protected] |
CdbException |
int | $keylen | |
int | $datalen |
Definition at line 394 of file CdbPHP.php.
References throwException(), and write().
Referenced by set().
CdbWriterPHP::addend | ( | $ | keylen, |
$ | datalen, | ||
$ | h | ||
) | [protected] |
int | $keylen | |
int | $datalen | |
int | $h |
Definition at line 377 of file CdbPHP.php.
References array(), and posplus().
Referenced by set().
CdbException |
Reimplemented from CdbWriter.
Definition at line 334 of file CdbPHP.php.
References finish(), CdbWriter\isWindows(), and throwException().
CdbWriterPHP::finish | ( | ) | [protected] |
CdbException |
Definition at line 408 of file CdbPHP.php.
References $count, $pos, array(), as, posplus(), throwException(), CdbFunctions\unsignedMod(), CdbFunctions\unsignedShiftRight(), and write().
Referenced by close().
CdbWriterPHP::posplus | ( | $ | len | ) | [protected] |
CdbException |
int | $len |
Definition at line 363 of file CdbPHP.php.
References throwException().
CdbWriterPHP::set | ( | $ | key, |
$ | value | ||
) |
string | $key | |
string | $value |
Reimplemented from CdbWriter.
Definition at line 320 of file CdbPHP.php.
References $key, $value, addbegin(), addend(), CdbFunctions\hash(), and write().
CdbWriterPHP::throwException | ( | $ | msg | ) | [protected] |
Clean up the temp file and throw an exception.
string | $msg |
CdbException |
Definition at line 487 of file CdbPHP.php.
Referenced by __construct(), addbegin(), close(), finish(), posplus(), and write().
CdbWriterPHP::write | ( | $ | buf | ) | [protected] |
CdbException |
string | $buf |
Definition at line 352 of file CdbPHP.php.
References throwException().
Referenced by addbegin(), finish(), and set().
CdbWriterPHP::$hplist [protected] |
Definition at line 291 of file CdbPHP.php.
CdbWriterPHP::$numentries [protected] |
Definition at line 293 of file CdbPHP.php.
CdbWriterPHP::$pos [protected] |
Definition at line 295 of file CdbPHP.php.
Referenced by finish().