finalize# CountDistinct.finalize(accumulator: Set[Any]) → int[source]# Return the count of distinct values. Parameters: accumulator (Set[Any]) – The set of distinct values collected across blocks. Returns: The number of distinct values. Return type: int