title: Spark: How to save a dataframe with headers?
body: <p><code>dataframe.saveasTextFile</code>, saves only the data in a delimited format. How do I save the dataframe with headers in JAVA.</p>
  
  <pre><code>sourceRufFrame.toJavaRDD().map(new TildaDelimiter()).coalesce(1, true).saveAsTextFile(targetSrcFilePath);
  </code></pre>