GroupingSets (Snowpark Java API Reference 1.19.1)

Package com.snowflake.snowpark_java

## Class GroupingSets

- java.lang.Object
- - com.snowflake.snowpark_java.GroupingSets

-     public class GroupingSets
      extends java.lang.Object

  A Container of grouping sets that you pass to `DataFrame.groupByGroupingSets`
  Since:
    1.1.0

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static GroupingSets` | `create​(java.util.Set<Column>... sets)` | Creates a GroupingSets object from a list of column/expression sets.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### create

          @SafeVarargs
          public static GroupingSets create​(java.util.Set<Column>... sets)

      Creates a GroupingSets object from a list of column/expression sets.
      Parameters:
        `sets` - a list of arguments
      Returns:
        A new GroupingSets Object
      Since:
        1.1.0