Wikibase
MediaWiki Wikibase extension
|
Interface for a facility that avoids duplicates based on value hashes. More...
Public Member Functions | |
alreadySeen ( $hash, $namespace='') | |
Check whether alreadySeen() has been called with the same $hash and $namespace before on this DedupeBag instance. More... | |
Interface for a facility that avoids duplicates based on value hashes.
Wikibase\Repo\Rdf\DedupeBag::alreadySeen | ( | $hash, | |
$namespace = '' |
|||
) |
Check whether alreadySeen() has been called with the same $hash and $namespace before on this DedupeBag instance.
This can be used to avoid processing or generating data multiple times, based on a hash value that can be checked against the bag.
string | $hash | Hash to check |
string | $namespace | Optional namespace to allow a compartmentalized bag, tracking hashes from multiple value sets. |
Implemented in Wikibase\Repo\Rdf\NullDedupeBag, and Wikibase\Repo\Rdf\HashDedupeBag.