Use this partitioner as a partitioner for rdd.
Use this partitioner as a partitioner for rdd. The rdd may have a SpacePartitioner already. If it is in sync with Bounds in the Metadata and PartitionIndex we assume it to be valid . Otherwise we assume it has degraded to be a hash partitioner and we must perform a shuffle.
Is another space partitioner compatible in the sense of key to index mapping?
Map given spatial region index to offset in region array (aka partition id)