org.apache.spark.rdd.ParallelCollectionRDD#getPartitions
org.apache.spark.rdd.HadoopRDD#getPartitions
需要注意的是getPartitions方法的触发时机是在行动算子执行的时候触发: