I believe we assume it's continuous in other parts of the code. Basically if an rdd has X partitions then it has partition labels 0 to X-1.