max

fun <T : Comparable<T>> JavaRDD<T>.max(): T

Returns the maximum element from this RDD as defined by the specified Comparator.

Return

the maximum of the RDD