[Spark-4060] [MLlib] exposing special rdd functions to the public