Added a method to create PartitionPruningRDD.