Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/164#discussion_r10865885
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala ---
    @@ -120,4 +122,21 @@ object MLUtils {
         }
         sum
       }
    +
    +  /**
    +   * Reads a bunch of whole files from HDFS, or a local file system 
(available on all nodes), or any
    +   * Hadoop-supported file system URI, and return an RDD[(String, String)].
    +   *
    +   * @param path The directory you should specified, such as
    +   *             hdfs://[address]:[port]/[dir]
    +   *
    +   * @return The first String is a file name, the second one is its 
content.
    --- End diff --
    
    Need to improve the doc. See my comment on `WholeTextInputFormat` and the 
doc of `textFile` as a reference.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to