## Uses of Class
com.snowflake.snowpark_java.types.Variant

- Packages that use Variant
  Package | Description
  --- | ---
  com.snowflake.snowpark_java | Provides most of the classes for the Snowpark Java API.
  com.snowflake.snowpark_java.types | Provides the classes specifying the schema (the data types of the fields) of semi-structured data.

- - ### Uses of Variant in com.snowflake.snowpark_java

    Methods in com.snowflake.snowpark_java that return Variant
    Modifier and Type | Method | Description
    --- | --- | ---
    `Variant` | Row.`getVariant​(int index)` | Retrieves the value of the column at the given index as a Variant value.

    Methods in com.snowflake.snowpark_java that return types with arguments of type Variant
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.List<Variant>` | Row.`getListOfVariant​(int index)` | Retrieves the value of the column at the given index as a list of Variant.
    `java.util.Map<java.lang.String,​Variant>` | Row.`getMapOfVariant​(int index)` | Retrieves the value of the column at the given index as a map of Variant

  - ### Uses of Variant in com.snowflake.snowpark_java.types

    Methods in com.snowflake.snowpark_java.types that return Variant
    Modifier and Type | Method | Description
    --- | --- | ---
    `Variant[]` | Variant.`asArray()` | Converts the variant as array of Variant.
    `static Variant` | InternalUtils.`createVariant​(com.snowflake.snowpark.types.Variant variant)` |

    Methods in com.snowflake.snowpark_java.types that return types with arguments of type Variant
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.List<Variant>` | Variant.`asList()` | Converts the variant as list of Variant.
    `java.util.Map<java.lang.String,​Variant>` | Variant.`asMap()` | Converts the variant as map of Variant.

    Methods in com.snowflake.snowpark_java.types with parameters of type Variant
    Modifier and Type | Method | Description
    --- | --- | ---
    `static com.snowflake.snowpark.types.Variant` | InternalUtils.`toScalaVariant​(Variant variant)` |