|
Wikibase
MediaWiki Wikibase extension
|
EntityIdReader reads entity IDs from a file, one per line. More...
Inheritance diagram for Wikibase\Repo\IO\EntityIdReader:
Collaboration diagram for Wikibase\Repo\IO\EntityIdReader:Public Member Functions | |
| __construct (LineReader $reader, EntityIdParser $parser, $entityType=null) | |
| setExceptionHandler (ExceptionHandler $exceptionHandler) | |
| getExceptionHandler () | |
| dispose () | |
| Closes the underlying input stream. | |
| fetchIds ( $limit) | |
| Fetches the next batch of IDs. | |
Protected Member Functions | |
| lineToId ( $line) | |
| next () | |
| Returns the next ID (or null if there are no more ids). | |
Private Attributes | |
| $reader | |
| $parser | |
| $entityType | |
| $exceptionHandler | |
Additional Inherited Members | |
Public Attributes inherited from Wikibase\DataModel\Services\EntityId\EntityIdPager | |
| const | NO_REDIRECTS = 'no' |
| Omit redirects from entity listing. | |
| const | INCLUDE_REDIRECTS = 'include' |
| Include redirects in entity listing. | |
| const | ONLY_REDIRECTS = 'only' |
| Include only redirects in listing. | |
EntityIdReader reads entity IDs from a file, one per line.
| Wikibase\Repo\IO\EntityIdReader::__construct | ( | LineReader | $reader, |
| EntityIdParser | $parser, | ||
| $entityType = null ) |
| LineReader | $reader | |
| EntityIdParser | $parser | |
| null | string | $entityType | The desired entity type, or null for any type. |
| Wikibase\Repo\IO\EntityIdReader::dispose | ( | ) |
Closes the underlying input stream.
| Wikibase\Repo\IO\EntityIdReader::fetchIds | ( | $limit | ) |
Fetches the next batch of IDs.
Calling this has the side effect of advancing the internal state of the page, typically implemented by some underlying resource such as a file pointer or a database connection.
| int | $limit | The maximum number of IDs to return. |
Implements Wikibase\DataModel\Services\EntityId\EntityIdPager.
| Wikibase\Repo\IO\EntityIdReader::getExceptionHandler | ( | ) |
|
protected |
| string | $line |
|
protected |
Returns the next ID (or null if there are no more ids).
| Wikibase\Repo\IO\EntityIdReader::setExceptionHandler | ( | ExceptionHandler | $exceptionHandler | ) |
|
private |
|
private |
|
private |
|
private |