Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/252#issuecomment-39045517
  
    @mateiz I don't think there exists such an input format in standard Hadoop 
libraries. This is an example from White's Hadoop book. I see usages like 
loading html/xml/json files. If we put it to `SparkContext`, I would still use 
the name `wholeTextFile` instead of `textFiles`.
    
    For your second question, we set `isSplittable` to false in 
`WholeTextFileInputFormat` to prevent splitting an existing file. Doc says:
    
    > Is the given filename splitable? Usually, true, but if the file is stream 
compressed, it will not be. FileInputFormat implementations can override this 
and return false to ensure that individual input files are never split-up so 
that Mappers process entire files.
    
    But I agree it is worth testing to find out the truth. @yinxusen Can you 
create a test for it?


---
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