@Override
  public RecordWriter getRecordWriter(TaskAttemptContext context)
      throws IOException, InterruptedException {
    Path file = getDefaultWorkFile(context, "");
    return new
        OrcRecordWriter(file, OrcFile.writerOptions(
            ShimLoader.getHadoopShims().getConfiguration(context)));
  }
An OutputFormat that writes ORC files.
ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcNewOutputFormat.java