title: How to generate a GUID id column in Spark that is of integer type
body: <p>I know I can do <code>UUID.randomUUID.toString</code> to attach an id to each row in my <code>Dataset</code> but I need this id to be a Long since I want to use GraphX. How do I do that in Spark? I know Spark has <code>monotonically_increasing_id()</code> but that is only for the DataFrame API - what about for Datasets?</p>