[SPARK-1822] Adding Scaladoc