@Override
    public boolean next(OrcRawRecordMerger.ReaderKey recordIdentifier,
            OrcStruct orcStruct) throws IOException {
      boolean result;
      // filter out the deleted records
      do {
        result = records.next(recordIdentifier, innerRecord);
      } while (result && OrcRecordUpdater.getOperation(innerRecord) == OrcRecordUpdater.DELETE_OPERATION);
      if (result) {
        // swap the fields with the passed in orcStruct
        orcStruct.linkFields(OrcRecordUpdater.getRow(innerRecord));
      }
      return result;
    }
Return a RecordReader that is compatible with the Hive 0.12 reader
with NullWritable for the key instead of RecordIdentifier.
ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.java