public static Writer createWriter(Path path,
                                    WriterOptions opts
                                    ) throws IOException {
    FileSystem fs = opts.getFileSystem() == null ?
      path.getFileSystem(opts.getConfiguration()) : opts.getFileSystem();

    return new WriterImpl(fs, path, opts);
  }
Create an ORC file writer. This is the public interface for creating
writers going forward and new options will only be added to this method.
@param path filename to write to
@param opts the options
@return a new ORC file writer
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java