Skip to content

Commit

Permalink
Changes to UnionRDD and EmptyRDD
Browse files Browse the repository at this point in the history
  • Loading branch information
pwendell committed Apr 6, 2014
1 parent 4a9e90c commit 7fb13b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/rdd/EmptyRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import org.apache.spark.{Partition, SparkContext, TaskContext}
/**
* An RDD that has no partitions and no elements.
*/
class EmptyRDD[T: ClassTag](sc: SparkContext) extends RDD[T](sc, Nil) {
private[spark] class EmptyRDD[T: ClassTag](sc: SparkContext) extends RDD[T](sc, Nil) {

override def getPartitions: Array[Partition] = Array.empty

Expand Down
1 change: 1 addition & 0 deletions core/src/main/scala/org/apache/spark/rdd/UnionRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private[spark] class UnionPartition[T: ClassTag](idx: Int, rdd: RDD[T], splitInd
}
}

/** <span class="badge" style="float: right; background-color: #44751E;">DEVELOPER API</span> */
class UnionRDD[T: ClassTag](
sc: SparkContext,
@transient var rdds: Seq[RDD[T]])
Expand Down

0 comments on commit 7fb13b2

Please sign in to comment.