Jens Rabe created HDFS-7378:
-------------------------------

             Summary: There should be a method to quickly test if a file is a 
SequenceFile or if a stream contains SequenceFile data
                 Key: HDFS-7378
                 URL: https://issues.apache.org/jira/browse/HDFS-7378
             Project: Hadoop HDFS
          Issue Type: New Feature
            Reporter: Jens Rabe
            Priority: Trivial


Currently, to check whether a file is a SequenceFile or a stream contains data 
in SequenceFile format, one either has to check the message of the thrown 
exception when opening a file with SequenceFile.Reader, or has to check the 
first four bytes by him/herself.

A utility method like SequenceFile.isSequenceFile would be very handy here.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to