spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhengruifeng <>
Subject [GitHub] spark pull request: [Minor][Core] Add nonEmpty to RDD and JavaRDD
Date Fri, 18 Mar 2016 12:38:28 GMT
Github user zhengruifeng commented on a diff in the pull request:
    --- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
    @@ -1386,6 +1386,12 @@ abstract class RDD[T: ClassTag](
    +   * @return false if and only if the RDD contains no elements at all. Note that an RDD
    +   *         may be empty even when it has at least 1 partition.
    +   */
    +  def nonEmpty(): Boolean = !isEmpty()
    --- End diff --
    ok, I will close it. but I think it may be useful to add some methods like nonEmpty/takeRight...

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message