[SPARK-911] allow efficient queries for a range if RDD is partitioned with RangePartitioner