GitHub user kmader opened a pull request:

    https://github.com/apache/spark/pull/1658

    Generic Binary File Support in Spark

    The additions add the abstract BinaryFileInputFormat and BinaryRecordReader 
classes for reading in data as a byte stream and converting it to another 
format using the ```def parseByteArray(inArray: Array[Byte]): T``` function.
    As a trivial example ByteInputFormat and ByteRecordReader are included 
which just return the Array[Byte] from a given file.
    Finally a RDD for BinaryFileInputFormat (to allow for easier partitioning 
changes as was done for WholeFileInput) was added and the appropriate byteFiles 
to the SparkContext so the functions can be easily used by others. 
    A common use case might be to read in a folder 
    ```
    sc.byteFiles("s3://mydrive/tif/*.tif").map(rawData => 
ReadTiffFromByteArray(rawData)
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/4Quant/spark master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/1658.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1658
    
----
commit 81c5f12f316ef6d344663fb70d861f30243cdc3d
Author: Kevin Mader <[email protected]>
Date:   2014-07-30T10:32:11Z

    Merge pull request #1 from apache/master
    
    Updating to the lastest spark repository

commit 84035f13028553c595a46a0c0f60b5e448ae3db5
Author: Kevin Mader <[email protected]>
Date:   2014-07-30T11:26:24Z

    adding binary and byte file support spark

----


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