Wikibase
MediaWiki Wikibase extension
|
Interface for DAO objects providing chunked access based on sequential indexes. More...
Public Member Functions | |
loadChunk ( $start, $size) | |
Returns a chunk as a list of whatever object is used for data records by the implementing class. | |
getRecordId ( $rec) | |
Returns the sequential ID of the given data record. | |
Interface for DAO objects providing chunked access based on sequential indexes.
"holes" in the index sequence are acceptable but should not be frequent.
Wikibase\Lib\Store\ChunkAccess::getRecordId | ( | $rec | ) |
Returns the sequential ID of the given data record.
mixed | $rec |
Implemented in Wikibase\Lib\Store\ChunkCache, and Wikibase\Lib\Store\Sql\EntityChangeLookup.
Wikibase\Lib\Store\ChunkAccess::loadChunk | ( | $start, | |
$size | |||
) |
Returns a chunk as a list of whatever object is used for data records by the implementing class.
int | $start | The first ID in the chunk |
int | $size | The desired size of the chunk |
Implemented in Wikibase\Lib\Store\ChunkCache, and Wikibase\Lib\Store\Sql\EntityChangeLookup.