|
MediaWiki master
|
FileBackendStore helper function to handle listings that span container shards. More...
Inherits FilterIterator.
Inherited by Wikimedia\FileBackend\FileIteration\FileBackendStoreShardDirIterator, and Wikimedia\FileBackend\FileIteration\FileBackendStoreShardFileIterator.

Public Member Functions | |
| __construct (FileBackendStore $backend, $container, $dir, array $suffixes, array $params) | |
| accept () | |
| rewind () | |
Protected Member Functions | |
| listFromShard ( $container) | |
| Get the list for a given container shard. | |
Protected Attributes | |
| FileBackendStore | $backend |
| string | $container |
| Full container name. | |
| string | $directory |
| Resolved relative path. | |
| array | $multiShardPaths = [] |
| array | $params |
FileBackendStore helper function to handle listings that span container shards.
Do not use this class from places outside of FileBackendStore.
Definition at line 21 of file FileBackendStoreShardListIterator.php.
| Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator::__construct | ( | FileBackendStore | $backend, |
| $container, | |||
| $dir, | |||
| array | $suffixes, | ||
| array | $params ) |
| FileBackendStore | $backend | |
| string | $container | Full storage container name |
| string | $dir | Storage directory relative to container |
| array | $suffixes | List of container shard suffixes |
| array | $params |
Definition at line 44 of file FileBackendStoreShardListIterator.php.
References Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\$backend, Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\$container, Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\$params, and Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\listFromShard().
| Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator::accept | ( | ) |
Definition at line 60 of file FileBackendStoreShardListIterator.php.
|
abstractprotected |
Get the list for a given container shard.
| string | $container | Resolved container name |
Reimplemented in Wikimedia\FileBackend\FileIteration\FileBackendStoreShardDirIterator, and Wikimedia\FileBackend\FileIteration\FileBackendStoreShardFileIterator.
Referenced by Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\__construct().
| Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator::rewind | ( | ) |
Definition at line 77 of file FileBackendStoreShardListIterator.php.
|
protected |
Definition at line 23 of file FileBackendStoreShardListIterator.php.
Referenced by Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\__construct().
|
protected |
Full container name.
Definition at line 29 of file FileBackendStoreShardListIterator.php.
Referenced by Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\__construct(), Wikimedia\FileBackend\FileIteration\FileBackendStoreShardDirIterator\listFromShard(), and Wikimedia\FileBackend\FileIteration\FileBackendStoreShardFileIterator\listFromShard().
|
protected |
Resolved relative path.
Definition at line 32 of file FileBackendStoreShardListIterator.php.
|
protected |
Definition at line 35 of file FileBackendStoreShardListIterator.php.
|
protected |
Definition at line 26 of file FileBackendStoreShardListIterator.php.
Referenced by Wikimedia\FileBackend\FileIteration\FileBackendStoreShardListIterator\__construct().