def _get_candidates(self, v):
candidates = []<EOL>for lshash in self.lshashes:<EOL><INDENT>for bucket_key in lshash.hash_vector(v, querying=True):<EOL><INDENT>bucket_content = self.storage.get_bucket(<EOL>lshash.hash_name,<EOL>bucket_key,<EOL>)<EOL>candidates.extend(bucket_content)<EOL><DEDENT><DEDENT>return candidates<EOL>
Collect candidates from all buckets from all hashes