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

- Packages that use StructType
  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.
  com.snowflake.snowpark_java.udaf |
  com.snowflake.snowpark_java.udtf | Provides the interfaces for user-defined table functions (UDTFs).

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

    Methods in com.snowflake.snowpark_java that return StructType
    Modifier and Type | Method | Description
    --- | --- | ---
    `StructType` | WriteFileResult.`getSchema()` | Retrieve the names and types of the fields in the output rows.
    `StructType` | DataFrame.`schema()` | Retrieves the definition of the columns in this DataFrame (the "relational schema" for the DataFrame).

    Methods in com.snowflake.snowpark_java with parameters of type StructType
    Modifier and Type | Method | Description
    --- | --- | ---
    `DataFrame` | Session.`createDataFrame​(Row[] data, StructType schema)` | Creates a new DataFrame that uses the specified schema and contains the specified Row objects.
    `DataFrameReader` | DataFrameReader.`schema​(StructType schema)` | Returns a DataFrameReader instance with the specified schema configuration for the data to be read.

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

    Methods in com.snowflake.snowpark_java.types that return StructType
    Modifier and Type | Method | Description
    --- | --- | ---
    `StructType` | StructType.`add​(StructField field)` | Creates new StructType by appending the given StructField to the end of this StructType.
    `StructType` | StructType.`add​(java.lang.String name, DataType dataType)` | Creates new StructType by appending a new StructField with the given info to the end of this StructType.
    `StructType` | StructType.`add​(java.lang.String name, DataType dataType, boolean nullable)` | Creates new StructType by appending a new StructField with the given info to the end of this StructType.
    `static StructType` | StructType.`create​(StructField... fields)` | Creates a StructType object based on the given StructField
    `static StructType` | InternalUtils.`createStructType​(com.snowflake.snowpark.types.StructType structType)` |

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

    Constructors in com.snowflake.snowpark_java.types with parameters of type StructType
    Constructor | Description
    --- | ---
    `StructType​(StructType other)` | Clones the given StructType object.

  - ### Uses of StructType in com.snowflake.snowpark_java.udaf

    Methods in com.snowflake.snowpark_java.udaf that return StructType
    Modifier and Type | Method | Description
    --- | --- | ---
    `default StructType` | JavaUDAF.`inputSchema()` |

  - ### Uses of StructType in com.snowflake.snowpark_java.udtf

    Methods in com.snowflake.snowpark_java.udtf that return StructType
    Modifier and Type | Method | Description
    --- | --- | ---
    `default StructType` | JavaUDTF.`inputSchema()` |
    `StructType` | JavaUDTF.`outputSchema()` |