Description
There's no option to set the compression codec on a SortedKeyValueFile.Writer. And since the Writer creates the output file in the constructor and it provides no public access to the underlying DataFileWriter anyway, the user can't set a codec themselves.
I have a patch that will add this functionality through the SortedKeyValueFile.Writer.Options class. But we might want to consider if it also makes sense to delay creating the data and index DataFileWriters until a create() method is called, and allow public access to these writers so a consumer of the API can modify settings of the underlying writers themselves.