[ 
https://issues.apache.org/jira/browse/HADOOP-6708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12860056#action_12860056
 ] 

Doug Cutting commented on HADOOP-6708:
--------------------------------------

> would it be possible to include a getRecordAsByteStream() / 
> getRecordAsCharStream()

What might be simpler is to implement a DatumReader<InputStream> that only 
works when the schema is "bytes" and whose #read() implementation returns a 
clone of BinaryDecoder#getInputStream().  You'd want to use a "direct" binary 
decoder and pass it an input stream implementation that you know how to clone.  
Then you could use the vanilla DataFileReader, seek to entries and read them.



> New file format for very large records
> --------------------------------------
>
>                 Key: HADOOP-6708
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6708
>             Project: Hadoop Common
>          Issue Type: New Feature
>          Components: io
>            Reporter: Aaron Kimball
>            Assignee: Aaron Kimball
>         Attachments: lobfile.pdf
>
>
> A file format that handles multi-gigabyte records efficiently, with lazy disk 
> access

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to