(reduce_iter, k)
| 122 | |
| 123 | |
| 124 | def _finalize_sample(reduce_iter, k): |
| 125 | sample = reduce_iter[0] |
| 126 | if len(sample) < k: |
| 127 | raise ValueError("Sample larger than population") |
| 128 | return sample |
| 129 | |
| 130 | |
| 131 | def _sample_map_partitions(population, k): |
nothing calls this directly
no outgoing calls
no test coverage detected