def assignments(self): """ :rtype: list :return: list of (key, cluster_id) Retrieve the results of the DBSCAN """ return self.result.collect()