hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Rabe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-7378) There should be a method to quickly test if a file is a SequenceFile or if a stream contains SequenceFile data
Date Fri, 07 Nov 2014 12:39:34 GMT
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)

Mime
View raw message