MediaWiki
master
|
FileBackendStore helper function to handle listings that span container shards. More...
Public Member Functions | |
__construct (FileBackendStore $backend, $container, $dir, array $suffixes, array $params) | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
Protected Member Functions | |
filterViaNext () | |
Filter out duplicate items by advancing to the next ones. | |
listFromShard ($container, $dir, array $params) | |
Get the list for a given container shard. | |
nextShardIteratorIfNotValid () | |
If the list iterator for this container shard is out of items, then move on to the next container that has items. | |
setIteratorFromCurrentShard () | |
Set the list iterator to that of the current container shard. | |
Protected Attributes | |
FileBackendStore | $backend |
* | |
$container | |
$curShard = 0 | |
$directory | |
Traversable | $iter |
* | |
Array | $multiShardPaths = array() |
* | |
Array | $params |
* | |
$pos = 0 | |
Array | $shardSuffixes |
* |
FileBackendStore helper function to handle listings that span container shards.
Do not use this class from places outside of FileBackendStore.
Definition at line 1785 of file FileBackendStore.php.
FileBackendStoreShardListIterator::__construct | ( | FileBackendStore $ | backend, |
$ | container, | ||
$ | dir, | ||
array $ | suffixes, | ||
array $ | params | ||
) |
$backend | FileBackendStore |
$container | string Full storage container name |
$dir | string Storage directory relative to container |
$suffixes | Array List of container shard suffixes |
$params | Array |
Definition at line 1805 of file FileBackendStore.php.
Definition at line 1840 of file FileBackendStore.php.
FileBackendStoreShardListIterator::filterViaNext | ( | ) | [protected] |
Filter out duplicate items by advancing to the next ones.
Definition at line 1886 of file FileBackendStore.php.
Definition at line 1819 of file FileBackendStore.php.
References $backend, $container, $dir, $params, and directory.
FileBackendStoreShardListIterator::listFromShard | ( | $ | container, |
$ | dir, | ||
array $ | params | ||
) | [abstract, protected] |
Get the list for a given container shard.
$container | string Resolved container name |
$dir | string Resolved path relative to container |
$params | Array |
Reimplemented in FileBackendStoreShardFileIterator, and FileBackendStoreShardDirIterator.
FileBackendStoreShardListIterator::nextShardIteratorIfNotValid | ( | ) | [protected] |
If the list iterator for this container shard is out of items, then move on to the next container that has items.
If there are none, then it advances to the last container.
Definition at line 1907 of file FileBackendStore.php.
Referenced by rewind().
Definition at line 1868 of file FileBackendStore.php.
References nextShardIteratorIfNotValid(), and valid().
FileBackendStoreShardListIterator::setIteratorFromCurrentShard | ( | ) | [protected] |
Set the list iterator to that of the current container shard.
Definition at line 1916 of file FileBackendStore.php.
Definition at line 1827 of file FileBackendStore.php.
Referenced by rewind().
FileBackendStore FileBackendStoreShardListIterator::$backend [protected] |
FileBackendStoreShardListIterator::$container [protected] |
Definition at line 1789 of file FileBackendStore.php.
Referenced by key().
FileBackendStoreShardListIterator::$curShard = 0 [protected] |
Definition at line 1793 of file FileBackendStore.php.
FileBackendStoreShardListIterator::$directory [protected] |
Definition at line 1790 of file FileBackendStore.php.
Traversable FileBackendStoreShardListIterator::$iter [protected] |
*
Definition at line 1792 of file FileBackendStore.php.
Array FileBackendStoreShardListIterator::$multiShardPaths = array() [protected] |
*
Definition at line 1796 of file FileBackendStore.php.
Array FileBackendStoreShardListIterator::$params [protected] |
FileBackendStoreShardListIterator::$pos = 0 [protected] |
Definition at line 1794 of file FileBackendStore.php.
Array FileBackendStoreShardListIterator::$shardSuffixes [protected] |
*
Definition at line 1788 of file FileBackendStore.php.