title: Where is the reference for options for writing or reading per format?
body: <p>I use Spark 1.6.1.</p>
  
  <p>We are trying to write an ORC file to HDFS using HiveContext and DataFrameWriter. While we can use </p>
  
  <pre><code>df.write().orc(&lt;path&gt;)
  </code></pre>
  
  <p>we would rather do something like</p>
  
  <pre><code>df.write().options(Map("format" -&gt; "orc", "path" -&gt; "/some_path")
  </code></pre>
  
  <p>This is so that we have the flexibility to change the format or root path depending on the application that uses this helper library. Where can we find a reference to the options that can be passed into the DataFrameWriter? I found nothing in the docs here </p>
  
  <p><a href="https://spark.apache.org/docs/1.6.0/api/java/org/apache/spark/sql/DataFrameWriter.html#options(java.util.Map)" rel="noreferrer">https://spark.apache.org/docs/1.6.0/api/java/org/apache/spark/sql/DataFrameWriter.html#options(java.util.Map)</a></p>