title: Does spark.sql.Dataset.groupByKey support window operations like groupBy?
body: <p>In Spark Structured Streaming, we can do window operations on event time with <code>groupBy</code> like:</p>
  
  <pre class="lang-scala prettyprint-override"><code>import spark.implicits._
  
  val words = ... // streaming DataFrame of schema { timestamp: Timestamp, word: String }
  
  // Group the data by window and word and compute the count of each group
  val windowedCounts = words.groupBy(
    window($"timestamp", "10 minutes", "5 minutes"),
    $"word"
  ).count()
  </code></pre>
  
  <p>Does <code>groupByKey</code> also supports window operations?</p>
  
  <p>Thanks.</p>