public static Writer createWriter(FileSystem fs,
                                    Path path,
                                    Configuration conf,
                                    ObjectInspector inspector,
                                    long stripeSize,
                                    CompressionKind compress,
                                    int bufferSize,
                                    int rowIndexStride) throws IOException {
    return createWriter(path, writerOptions(conf)
        .inspector(inspector)
        .fileSystem(fs)
        .stripeSize(stripeSize)
        .compress(compress)
        .bufferSize(bufferSize)
        .rowIndexStride(rowIndexStride));
  }
Create an ORC file writer. This method is provided for API backward
compatability with Hive 0.11.
@param fs file system
@param path filename to write to
@param inspector the ObjectInspector that inspects the rows
@param stripeSize the number of bytes in a stripe
@param compress how to compress the file
@param bufferSize the number of bytes to compress at once
@param rowIndexStride the number of rows between row index entries or
                      0 to suppress all indexes
@return a new ORC file writer
@throws IOException
ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java