Github user mengxr commented on a diff in the pull request: https://github.com/apache/spark/pull/22240#discussion_r212863571 --- Diff: core/src/main/scala/org/apache/spark/rdd/RDDBarrier.scala --- @@ -22,15 +22,22 @@ import scala.reflect.ClassTag import org.apache.spark.TaskContext import org.apache.spark.annotation.{Experimental, Since} -/** Represents an RDD barrier, which forces Spark to launch tasks of this stage together. */ -class RDDBarrier[T: ClassTag](rdd: RDD[T]) { +/** + * :: Experimental :: + * Wraps an RDD in a barrier stage, which forces Spark to launch tasks of this stage together. + * [[RDDBarrier]] instances are created by [[RDD.barrier]]. + */ +@Experimental +@Since("2.4.0") +class RDDBarrier[T: ClassTag] private[spark] (rdd: RDD[T]) { --- End diff -- also hide the constructor here
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org