Esempio n. 1
0
 @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;
 }
Esempio n. 2
0
 @Override
 public void close() throws IOException {
   orcDataReader.close();
 }
Esempio n. 3
0
 @Override
 public void releaseBuffer(ByteBuffer buffer) {
   orcDataReader.releaseBuffer(buffer);
 }
Esempio n. 4
0
 @Override
 public void open() throws IOException {
   long startTime = counters.startTimeCounter();
   orcDataReader.open();
   counters.recordHdfsTime(startTime);
 }
Esempio n. 5
0
 @Override
 public boolean isTrackingDiskRanges() {
   return orcDataReader.isTrackingDiskRanges();
 }