title: Get Spark dataset metadata
body: <p>I am trying to convert the <code>Dataset&lt;row&gt;</code> into another object. Possibly be <code>java.list</code>. And I need to extract the metadata for this dataset. Like the number of column, column names and column types. Is there anyway to do it?
  Thank you</p>