@Override
  public void doClose() throws IOException {
    if (recordReader != null) {
      recordReader.close();
      recordReader = null;
    }
    idx = 0;
  }
BucketizedHiveRecordReader is a wrapper on a list of RecordReader. It behaves
similar as HiveRecordReader while it wraps a list of RecordReader from one
file.
ql/src/java/org/apache/hadoop/hive/ql/io/BucketizedHiveRecordReader.java