WindowSpec can be created by using window.partitionBy() or window.orderBy()
sws
A Java object reference to the backing Scala WindowSpec
window.partitionBy, window.orderBy