@Override public void close() throws IOException { if (reader_ != null) { Preconditions.checkNotNull(reporter_); try { setCounters(reporter_, reader_.records().getStatus().stats); } catch (RecordServiceException e) { LOG.debug("Could not populate counters: " + e); } finally { reader_.close(); reader_ = null; } } }
@Override public void close() throws IOException { if (reader_ != null) { try { RecordServiceInputFormatBase.setCounters( context_, reader_.records().getStatus().stats); } catch (RecordServiceException e) { LOG.debug("Could not populate counters: " + e); } finally { reader_.close(); reader_ = null; } } }