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