Skip to content

Commit 8c62dd1

Browse files
Made splits deprecated in JavaRDDLike
1 parent 9535f40 commit 8c62dd1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
4343

4444
def rdd: RDD[T]
4545

46-
/** Set of partitions in this RDD. */
46+
@deprecated(message: String = "Use partitions instead.", since: String = "0.9.2")
4747
def splits: JList[Partition] = new java.util.ArrayList(rdd.partitions.toSeq)
48+
49+
/** Set of partitions in this RDD. */
50+
def partitions: JList[Partition] = new java.util.ArrayList(rdd.partitions.toSeq)
4851

4952
/** The [[org.apache.spark.SparkContext]] that this RDD was created on. */
5053
def context: SparkContext = rdd.context

0 commit comments

Comments
 (0)