hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-6972) enable try-with-resources for RecordReader
Date Fri, 29 Sep 2017 07:29:00 GMT
Zoltan Haindrich created MAPREDUCE-6972:
-------------------------------------------

             Summary: enable try-with-resources for RecordReader
                 Key: MAPREDUCE-6972
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6972
             Project: Hadoop Map/Reduce
          Issue Type: Improvement
            Reporter: Zoltan Haindrich



{{org.apache.hadoop.mapred.RecordReader}} has a close method; but doesn't implement closeable;
it would be nice to add that - it would enable to use:

{code}
try( org.apache.hadoop.mapred.RecordReader<?, ?> recordReader = inputFormat.getRecordReader(...
)   ){
 [...]
}
{code}

...supporting t-w-r makes it easier to throw exceptions more safely



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org


Mime
View raw message