Understanding The Nonempty Method In Spark Scala Action Or Transformation?