@Override public DiskRangeList readFileData(DiskRangeList range, long baseOffset, boolean doForceDirect) throws IOException { long startTime = counters.startTimeCounter(); DiskRangeList result = orcDataReader.readFileData(range, baseOffset, doForceDirect); counters.recordHdfsTime(startTime); if (DebugUtils.isTraceOrcEnabled() && LOG.isInfoEnabled()) { LOG.info( "Disk ranges after disk read (file " + fileId + ", base offset " + baseOffset + "): " + RecordReaderUtils.stringifyDiskRanges(result)); } return result; }
@Override public void close() throws IOException { orcDataReader.close(); }
@Override public void releaseBuffer(ByteBuffer buffer) { orcDataReader.releaseBuffer(buffer); }
@Override public void open() throws IOException { long startTime = counters.startTimeCounter(); orcDataReader.open(); counters.recordHdfsTime(startTime); }
@Override public boolean isTrackingDiskRanges() { return orcDataReader.isTrackingDiskRanges(); }